tests: Fix test to not depend on instruction names.

llvm-svn: 107186
This commit is contained in:
Daniel Dunbar 2010-06-29 18:34:40 +00:00
parent f35e76552f
commit 99e13101b2
1 changed files with 3 additions and 2 deletions

View 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*
}