[cfe-commits] r107186 - /cfe/trunk/test/CodeGen/exprs.c

Daniel Dunbar daniel at zuster.org
Tue Jun 29 11:34:40 PDT 2010


Author: ddunbar
Date: Tue Jun 29 13:34:40 2010
New Revision: 107186

URL: http://llvm.org/viewvc/llvm-project?rev=107186&view=rev
Log:
tests: Fix test to not depend on instruction names.

Modified:
    cfe/trunk/test/CodeGen/exprs.c

Modified: cfe/trunk/test/CodeGen/exprs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/exprs.c?rev=107186&r1=107185&r2=107186&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/exprs.c (original)
+++ cfe/trunk/test/CodeGen/exprs.c Tue Jun 29 13:34:40 2010
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -emit-llvm -o - | FileCheck %s
 
 // PR1895
 // sizeof function
@@ -126,7 +126,8 @@
   int A[100];
   return A[X];
 
-// CHECK: load {{.*}}* %X.addr
+// CHECK: [[Xaddr:%[^ ]+]] = alloca i64, align 8
+// CHECK: load {{.*}}* [[Xaddr]]
 // CHECK-NEXT: getelementptr inbounds [100 x i32]* %A, i32 0, 
 // CHECK-NEXT: load i32*
 }





More information about the cfe-commits mailing list