aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-26 01:24:10 +0000
committerEric Christopher <echristo@apple.com>2011-07-26 01:24:10 +0000
commitcd3d88c350332e13ee163663f627e1f4598bc077 (patch)
treefb63cb393ac5ff77afab17b0dab3d8856c52dabb
parentaa2e244494f9d620a72a168099c1bbe8b61f3500 (diff)
Rework this slightly to work for optimized compilers and remove the
optimization from the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136039 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/2011-03-31-ArrayRefFolding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/2011-03-31-ArrayRefFolding.c b/test/CodeGen/2011-03-31-ArrayRefFolding.c
index 3fc5e5af31..31c0a681a4 100644
--- a/test/CodeGen/2011-03-31-ArrayRefFolding.c
+++ b/test/CodeGen/2011-03-31-ArrayRefFolding.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin -Os %s | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm -o - -triple i386-apple-darwin %s | FileCheck %s
// PR9571
struct t {
@@ -9,7 +9,7 @@ extern struct t *cfun;
int f(void) {
if (!(cfun + 0))
- // CHECK: icmp eq %struct.t* %tmp, null
+ // CHECK: icmp ne %struct.t*
return 0;
return cfun->x;
}