summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/annotations-var.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-09-10 05:31:57 +0000
committerJohn McCall <rjmccall@apple.com>2011-09-10 05:31:57 +0000
commit5dc5c1ea47b8fbd7ce043892a005749a74a153ab (patch)
tree6de91e435065f42f2fb1ce9b9f2c2dc2cdb7e3bf /clang/test/CodeGen/annotations-var.c
parent7fde916498b96a7bd6e951490ccb4369488d6c3f (diff)
downloadbcm5719-llvm-5dc5c1ea47b8fbd7ce043892a005749a74a153ab.tar.gz
bcm5719-llvm-5dc5c1ea47b8fbd7ce043892a005749a74a153ab.zip
Missed a %local use; hopefully this clears this test up.
llvm-svn: 139462
Diffstat (limited to 'clang/test/CodeGen/annotations-var.c')
-rw-r--r--clang/test/CodeGen/annotations-var.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/clang/test/CodeGen/annotations-var.c b/clang/test/CodeGen/annotations-var.c
index 60a1b438746..b8ada9fc0f3 100644
--- a/clang/test/CodeGen/annotations-var.c
+++ b/clang/test/CodeGen/annotations-var.c
@@ -18,13 +18,14 @@ int foo(int v __attribute__((annotate("param_ann_2"))) __attribute__((annotate("
int foo(int v __attribute__((annotate("param_ann_0"))) __attribute__((annotate("param_ann_1")))) {
return v + 1;
// PARAM: define {{.*}}@foo
-// PARAM: bitcast i32* %v.addr to i8*
+// PARAM: [[V:%.*]] = alloca i32
+// PARAM: bitcast i32* [[V]] to i8*
// PARAM-NEXT: call void @llvm.var.annotation(
-// PARAM-NEXT: bitcast i32* %v.addr to i8*
+// PARAM-NEXT: bitcast i32* [[V]] to i8*
// PARAM-NEXT: call void @llvm.var.annotation(
-// PARAM-NEXT: bitcast i32* %v.addr to i8*
+// PARAM-NEXT: bitcast i32* [[V]] to i8*
// PARAM-NEXT: call void @llvm.var.annotation(
-// PARAM-NEXT: bitcast i32* %v.addr to i8*
+// PARAM-NEXT: bitcast i32* [[V]] to i8*
// PARAM-NEXT: call void @llvm.var.annotation(
}
@@ -33,9 +34,9 @@ void local(void) {
// LOCAL: define void @local()
// LOCAL: [[LOCALVAR:%.*]] = alloca i32,
// LOCAL-NEXT: [[T0:%.*]] = bitcast i32* [[LOCALVAR]] to i8*
-// LOCAL-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 32)
+// LOCAL-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 33)
// LOCAL-NEXT: [[T0:%.*]] = bitcast i32* [[LOCALVAR]] to i8*
-// LOCAL-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 32)
+// LOCAL-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 33)
}
void undef(void) {
@@ -43,5 +44,5 @@ void undef(void) {
// UNDEF: define void @undef()
// UNDEF: [[UNDEFVAR:%.*]] = alloca i32,
// UNDEF-NEXT: [[T0:%.*]] = bitcast i32* [[UNDEFVAR]] to i8*
-// UNDEF-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 42)
+// UNDEF-NEXT: call void @llvm.var.annotation(i8* [[T0]], i8* getelementptr inbounds ([15 x i8]* @{{.*}}), i8* getelementptr inbounds ({{.*}}), i32 43)
}
OpenPOWER on IntegriCloud