]> granicus.if.org Git - clang/commitdiff
Rework this slightly to work for optimized compilers and remove the
authorEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 01:24:10 +0000 (01:24 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 26 Jul 2011 01:24:10 +0000 (01:24 +0000)
optimization from the test.

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

test/CodeGen/2011-03-31-ArrayRefFolding.c

index 3fc5e5af31d102ca794add4476fca0004333db18..31c0a681a4dce6d17dffecbb7c9cbda14cbdcea1 100644 (file)
@@ -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;
 }