comparison clang/test/CodeGen/annotations-field.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children c4bab56944e8
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
13 int main(int argc, char **argv) { 13 int main(int argc, char **argv) {
14 struct foo f; 14 struct foo f;
15 f.v = argc; 15 f.v = argc;
16 // CHECK: getelementptr inbounds %struct.foo, %struct.foo* %f, i32 0, i32 0 16 // CHECK: getelementptr inbounds %struct.foo, %struct.foo* %f, i32 0, i32 0
17 // CHECK-NEXT: bitcast i32* {{.*}} to i8* 17 // CHECK-NEXT: bitcast i32* {{.*}} to i8*
18 // CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8) 18 // CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8, i8* null)
19 // CHECK-NEXT: bitcast i8* {{.*}} to i32* 19 // CHECK-NEXT: bitcast i8* {{.*}} to i32*
20 // CHECK-NEXT: bitcast i32* {{.*}} to i8* 20 // CHECK-NEXT: bitcast i32* {{.*}} to i8*
21 // CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8) 21 // CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8, i8* null)
22 // CHECK-NEXT: bitcast i8* {{.*}} to i32* 22 // CHECK-NEXT: bitcast i8* {{.*}} to i32*
23 gf.v = argc; 23 gf.v = argc;
24 // CHECK: call i8* @llvm.ptr.annotation.p0i8(i8* bitcast (%struct.foo* @gf to i8*), {{.*}}str{{.*}}str{{.*}}i32 8) 24 // CHECK: call i8* @llvm.ptr.annotation.p0i8(i8* bitcast (%struct.foo* @gf to i8*), {{.*}}str{{.*}}str{{.*}}i32 8, i8* null)
25 return 0; 25 return 0;
26 } 26 }