Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGenCXX/amdgcn_declspec_get.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 79ff65ed7e25 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
12 | 12 |
13 extern const A a; | 13 extern const A a; |
14 | 14 |
15 // CHECK-LABEL: define{{.*}} void @_Z4testv() | 15 // CHECK-LABEL: define{{.*}} void @_Z4testv() |
16 // CHECK: %i = alloca i32, align 4, addrspace(5) | 16 // CHECK: %i = alloca i32, align 4, addrspace(5) |
17 // CHECK: %[[ii:.*]] = addrspacecast i32 addrspace(5)* %i to i32* | 17 // CHECK: %[[ii:.*]] = addrspacecast ptr addrspace(5) %i to ptr |
18 // CHECK: %[[cast:.*]] = bitcast i32 addrspace(5)* %i to i8 addrspace(5)* | 18 // CHECK: call void @llvm.lifetime.start.p5(i64 4, ptr addrspace(5) %i) |
19 // CHECK: call void @llvm.lifetime.start.p5i8(i64 4, i8 addrspace(5)* %[[cast]]) | 19 // CHECK: %call = call noundef i32 @_ZN1A6_get_xEv() |
20 // CHECK: %call = call i32 @_ZN1A6_get_xEv() | 20 // CHECK: store i32 %call, ptr %[[ii]] |
21 // CHECK: store i32 %call, i32* %[[ii]] | 21 // CHECK: call void @llvm.lifetime.end.p5(i64 4, ptr addrspace(5) %i) |
22 // CHECK: %[[cast2:.*]] = bitcast i32 addrspace(5)* %i to i8 addrspace(5)* | |
23 // CHECK: call void @llvm.lifetime.end.p5i8(i64 4, i8 addrspace(5)* %[[cast2]]) | |
24 void test() | 22 void test() |
25 { | 23 { |
26 int i = a.x; | 24 int i = a.x; |
27 } | 25 } |