diff clang/test/CodeGenCUDA/vtbl.cu @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents c4bab56944e8
children
line wrap: on
line diff
--- a/clang/test/CodeGenCUDA/vtbl.cu	Wed Nov 09 17:47:54 2022 +0900
+++ b/clang/test/CodeGenCUDA/vtbl.cu	Fri Aug 18 09:04:13 2023 +0900
@@ -1,13 +1,12 @@
-// RUN: %clang_cc1 -no-opaque-pointers -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \
+// RUN: %clang_cc1 -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \
 // RUN:   -emit-llvm -o - %s | FileCheck %s
 
 #include "Inputs/cuda.h"
 
-// CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(%struct.A* noundef nonnull align 8 dereferenceable(8) %this)
-// CHECK: store %struct.A* %this, %struct.A** %this.addr.ascast
-// CHECK: %this1 = load %struct.A*, %struct.A** %this.addr.ascast
-// CHECK: %[[VTFIELD:.*]] = bitcast %struct.A* %this1 to i32 (...)* addrspace(1)**
-// CHECK: store i32 (...)* addrspace(1)* bitcast{{.*}} @_ZTV1A{{.*}}, i32 (...)* addrspace(1)** %[[VTFIELD]]
+// CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %this)
+// CHECK: store ptr %this, ptr %this.addr.ascast
+// CHECK: %this1 = load ptr, ptr %this.addr.ascast
+// CHECK: store ptr addrspace(1) {{.*}} @_ZTV1A{{.*}}, ptr %this1
 struct A {
   __device__ virtual void vf() {}
 };