Be explicit about which level of optimization is being asked for. The -O option
authorReid Spencer <rspencer@reidspencer.com>
Sun, 29 Jul 2007 18:23:22 +0000 (18:23 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 29 Jul 2007 18:23:22 +0000 (18:23 +0000)
is equivalent to -O1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40581 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/exact-div-expr.c

index 03626c926528c31d811c27d463f0393d3225fec4..9dce922f95325752841ab75d40fe90b731885bdc 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %llvmgcc -S %s -o - -O | grep ashr
-// RUN: %llvmgcc -S %s -o - -O | not grep sdiv
+// RUN: %llvmgcc -S %s -o - -O1 | grep ashr
+// RUN: %llvmgcc -S %s -o - -O1 | not grep sdiv
 
 long long test(int *A, int *B) {
   return A-B;