From ec6480e235819caeaf969da5b98a16a90a234ccd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 15 Jul 2007 22:30:34 +0000 Subject: new testcase llvm-svn: 39882 --- llvm/test/CFrontend/exact-div-expr.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/CFrontend/exact-div-expr.c (limited to 'llvm/test/CFrontend/exact-div-expr.c') diff --git a/llvm/test/CFrontend/exact-div-expr.c b/llvm/test/CFrontend/exact-div-expr.c new file mode 100644 index 00000000000..6cda9286627 --- /dev/null +++ b/llvm/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; +} -- cgit v1.2.3