From: Eric Christopher Date: Tue, 26 Jul 2011 01:24:10 +0000 (+0000) Subject: Rework this slightly to work for optimized compilers and remove the X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd3d88c350332e13ee163663f627e1f4598bc077;p=clang 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 --- 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; }