]> granicus.if.org Git - clang/commitdiff
tests: Fix test to not depend on instruction names.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 29 Jun 2010 18:34:40 +0000 (18:34 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 29 Jun 2010 18:34:40 +0000 (18:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107186 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/exprs.c

index aa4aa51ddce6e288c10316cb578f25cad2e0ca13..7cc1134077ee6d53a70bf707423b895eb580380a 100644 (file)
@@ -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 f11(long X) {
   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*
 }