summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
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
commit2da8b9c6528bc9436174da12b685a4b5b8b9bf5e (patch)
treec1a324695d2e6304dd88b2210445ce0098670538 /clang/test/CodeGen
parent6f2a0d72341f28d012752f29413f51ea3bf60b2e (diff)
downloadbcm5719-llvm-2da8b9c6528bc9436174da12b685a4b5b8b9bf5e.tar.gz
bcm5719-llvm-2da8b9c6528bc9436174da12b685a4b5b8b9bf5e.zip
Rework this slightly to work for optimized compilers and remove the
optimization from the test. llvm-svn: 136039
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/2011-03-31-ArrayRefFolding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/2011-03-31-ArrayRefFolding.c b/clang/test/CodeGen/2011-03-31-ArrayRefFolding.c
index 3fc5e5af31d..31c0a681a4d 100644
--- a/clang/test/CodeGen/2011-03-31-ArrayRefFolding.c
+++ b/clang/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;
}
OpenPOWER on IntegriCloud