diff --git a/test/CFrontend/exact-div-expr.c b/test/CFrontend/exact-div-expr.c new file mode 100644 index 00000000000..6cda9286627 --- /dev/null +++ b/test/CFrontend/exact-div-expr.c @@ -0,0 +1,6 @@ +// RUN: %llvmgcc -S %s -o - -O | grep ashr +// RUN: %llvmgcc -S %s -o - -O | not grep sdiv + +int test(int *A, int *B) { + return A-B; +}