[cfe-commits] r139462 - /cfe/trunk/test/CodeGen/annotations-var.c
John McCall
rjmccall at apple.com
Fri Sep 9 22:31:57 PDT 2011
Author: rjmccall
Date: Sat Sep 10 00:31:57 2011
New Revision: 139462
URL: http://llvm.org/viewvc/llvm-project?rev=139462&view=rev
Log:
Missed a %local use; hopefully this clears this test up.
Modified:
cfe/trunk/test/CodeGen/annotations-var.c
Modified: cfe/trunk/test/CodeGen/annotations-var.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/annotations-var.c?rev=139462&r1=139461&r2=139462&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/annotations-var.c (original)
+++ cfe/trunk/test/CodeGen/annotations-var.c Sat Sep 10 00:31:57 2011
@@ -18,13 +18,14 @@
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 @@
// 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 @@
// 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)
}
More information about the cfe-commits
mailing list