diff 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
line wrap: on
line diff
--- a/clang/test/CodeGenCXX/amdgcn_declspec_get.cpp	Wed Jul 21 10:27:27 2021 +0900
+++ b/clang/test/CodeGenCXX/amdgcn_declspec_get.cpp	Wed Nov 09 17:45:10 2022 +0900
@@ -14,13 +14,11 @@
 
 // CHECK-LABEL: define{{.*}} void @_Z4testv()
 // CHECK:  %i = alloca i32, align 4, addrspace(5)
-// CHECK:  %[[ii:.*]] = addrspacecast i32 addrspace(5)* %i to i32*
-// CHECK:  %[[cast:.*]] = bitcast i32 addrspace(5)* %i to i8 addrspace(5)*
-// CHECK:  call void @llvm.lifetime.start.p5i8(i64 4, i8 addrspace(5)* %[[cast]])
-// CHECK:  %call = call i32 @_ZN1A6_get_xEv()
-// CHECK:  store i32 %call, i32* %[[ii]]
-// CHECK:  %[[cast2:.*]] = bitcast i32 addrspace(5)* %i to i8 addrspace(5)*
-// CHECK:  call void @llvm.lifetime.end.p5i8(i64 4, i8 addrspace(5)* %[[cast2]])
+// CHECK:  %[[ii:.*]] = addrspacecast ptr addrspace(5) %i to ptr
+// CHECK:  call void @llvm.lifetime.start.p5(i64 4, ptr addrspace(5) %i)
+// CHECK:  %call = call noundef i32 @_ZN1A6_get_xEv()
+// CHECK:  store i32 %call, ptr %[[ii]]
+// CHECK:  call void @llvm.lifetime.end.p5(i64 4, ptr addrspace(5) %i)
 void test()
 {
   int i = a.x;