Skip to content

Commit 1225223

Browse files
committed
fix lit tests
1 parent c62e91c commit 1225223

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/IntelFPGAMemoryAccesses.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
; return 0;
4242
; }
4343

44-
; RUN: llvm-as %s -o %t.bc
44+
; RUN: llvm-as %s -o %t.bc -opaque-pointers=1
4545
; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses -o %t.spv
4646
; RUN: llvm-spirv %t.spv -to-text -o - | FileCheck %s --check-prefix=CHECK-SPIRV
4747

llvm-spirv/test/extensions/INTEL/SPV_INTEL_fpga_memory_accesses/intel_fpga_lsu_optimized.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
; }
5050

5151
; Check that translation of optimized IR doesn't crash:
52-
; RUN: llvm-as %s -o %t.bc
52+
; RUN: llvm-as %s -o %t.bc -opaque-pointers=1
5353
; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_fpga_memory_accesses -o %t.spv
5454

5555
; Check that reverse translation restore ptr.annotations correctly:

llvm-spirv/test/image.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target triple = "spir64-unknown-unknown"
2222
%opencl.image2d_t = type opaque
2323

2424
; Function Attrs: nounwind
25-
define spir_kernel void @image_copy(%opencl.image2d_t addrspace(1)* readnone %image1, %opencl.image2d_t addrspace(1)* %image2) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
25+
define spir_kernel void @image_copy(%opencl.image2d_t addrspace(1)* %image1, %opencl.image2d_t addrspace(1)* %image2) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !5 !kernel_arg_type_qual !4 {
2626
entry:
2727
%call = tail call spir_func i64 @_Z13get_global_idj(i32 0) #3
2828
%conv = trunc i64 %call to i32

llvm-spirv/test/transcoding/clk_event_t.cl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
// CHECK-SPIRV: FunctionEnd
2020

2121
// CHECK-LLVM-OCL-LABEL: @clk_event_t_test
22-
// CHECK-LLVM-OCL: call spir_func %opencl.clk_event_t* @_Z17create_user_eventv()
22+
// CHECK-LLVM-OCL: call spir_func ptr @_Z17create_user_eventv()
2323
// CHECK-LLVM-OCL: call spir_func i1 @_Z14is_valid_event12ocl_clkevent(
2424
// CHECK-LLVM-OCL: call spir_func void @_Z12retain_event12ocl_clkevent(
25-
// CHECK-LLVM-OCL: call spir_func void @_Z21set_user_event_status12ocl_clkeventi(%opencl.clk_event_t* %{{[a-z]+}}, i32 -42)
26-
// CHECK-LLVM-OCL: call spir_func void @_Z28capture_event_profiling_info12ocl_clkeventiPU3AS1v(%opencl.clk_event_t* %{{[a-z]+}}, i32 1, i8 addrspace(1)* %prof)
25+
// CHECK-LLVM-OCL: call spir_func void @_Z21set_user_event_status12ocl_clkeventi(
26+
// CHECK-LLVM-OCL: call spir_func void @_Z28capture_event_profiling_info12ocl_clkeventiPU3AS1v(
2727
// CHECK-LLVM-OCL: call spir_func void @_Z13release_event12ocl_clkevent(
2828
// CHECK-LLVM-OCL: ret
2929

3030
// CHECK-LLVM-SPV-LABEL: @clk_event_t_test
31-
// CHECK-LLVM-SPV: call spir_func %spirv.DeviceEvent* @_Z23__spirv_CreateUserEventv()
31+
// CHECK-LLVM-SPV: call spir_func target("spirv.DeviceEvent") @_Z23__spirv_CreateUserEventv()
3232
// CHECK-LLVM-SPV: call spir_func i1 @_Z20__spirv_IsValidEventP19__spirv_DeviceEvent(
3333
// CHECK-LLVM-SPV: call spir_func void @_Z19__spirv_RetainEventP19__spirv_DeviceEvent(
34-
// CHECK-LLVM-SPV: call spir_func void @_Z26__spirv_SetUserEventStatusP19__spirv_DeviceEventi(%spirv.DeviceEvent* %{{[a-z]+}}, i32 -42)
35-
// CHECK-LLVM-SPV: call spir_func void @_Z33__spirv_CaptureEventProfilingInfoP19__spirv_DeviceEventiPU3AS1c(%spirv.DeviceEvent* %{{[a-z]+}}, i32 1, i8 addrspace(1)* %prof)
34+
// CHECK-LLVM-SPV: call spir_func void @_Z26__spirv_SetUserEventStatusP19__spirv_DeviceEventi(
35+
// CHECK-LLVM-SPV: call spir_func void @_Z33__spirv_CaptureEventProfilingInfoP19__spirv_DeviceEventiPU3AS1c(
3636
// CHECK-LLVM-SPV: call spir_func void @_Z20__spirv_ReleaseEventP19__spirv_DeviceEvent(
3737
// CHECK-LLVM-SPV: ret
3838

llvm-spirv/test/transcoding/spirv-types.ll

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ target triple = "spir-unknown-unknown"
9393
; CHECK-SPIRV: 3 FunctionParameter [[IMG2D_RW]] {{[0-9]+}}
9494

9595
; CHECK-LLVM: define spir_kernel void @foo(
96-
; CHECK-LLVM-SAME: %opencl.pipe_ro_t addrspace(1)* nocapture %a,
97-
; CHECK-LLVM-SAME: %opencl.pipe_wo_t addrspace(1)* nocapture %b,
98-
; CHECK-LLVM-SAME: %opencl.image1d_ro_t addrspace(1)* nocapture %c1,
99-
; CHECK-LLVM-SAME: %opencl.image2d_ro_t addrspace(1)* nocapture %d1,
100-
; CHECK-LLVM-SAME: %opencl.image3d_ro_t addrspace(1)* nocapture %e1,
101-
; CHECK-LLVM-SAME: %opencl.image2d_array_ro_t addrspace(1)* nocapture %f1,
102-
; CHECK-LLVM-SAME: %opencl.image1d_buffer_ro_t addrspace(1)* nocapture %g1,
103-
; CHECK-LLVM-SAME: %opencl.image1d_wo_t addrspace(1)* nocapture %c2,
104-
; CHECK-LLVM-SAME: %opencl.image2d_rw_t addrspace(1)* nocapture %d3)
96+
; CHECK-LLVM-SAME: %opencl.pipe_ro_t addrspace(1)* %a,
97+
; CHECK-LLVM-SAME: %opencl.pipe_wo_t addrspace(1)* %b,
98+
; CHECK-LLVM-SAME: %opencl.image1d_ro_t addrspace(1)* %c1,
99+
; CHECK-LLVM-SAME: %opencl.image2d_ro_t addrspace(1)* %d1,
100+
; CHECK-LLVM-SAME: %opencl.image3d_ro_t addrspace(1)* %e1,
101+
; CHECK-LLVM-SAME: %opencl.image2d_array_ro_t addrspace(1)* %f1,
102+
; CHECK-LLVM-SAME: %opencl.image1d_buffer_ro_t addrspace(1)* %g1,
103+
; CHECK-LLVM-SAME: %opencl.image1d_wo_t addrspace(1)* %c2,
104+
; CHECK-LLVM-SAME: %opencl.image2d_rw_t addrspace(1)* %d3)
105105
; CHECK-LLVM-SAME: !kernel_arg_addr_space [[AS:![0-9]+]]
106106
; CHECK-LLVM-SAME: !kernel_arg_access_qual [[AQ:![0-9]+]]
107107
; CHECK-LLVM-SAME: !kernel_arg_type [[TYPE:![0-9]+]]
@@ -110,15 +110,15 @@ target triple = "spir-unknown-unknown"
110110

111111
; Function Attrs: nounwind readnone
112112
define spir_kernel void @foo(
113-
%spirv.Pipe._0 addrspace(1)* nocapture %a,
114-
%spirv.Pipe._1 addrspace(1)* nocapture %b,
115-
%spirv.Image._void_0_0_0_0_0_0_0 addrspace(1)* nocapture %c1,
116-
%spirv.Image._int_1_0_0_0_0_0_0 addrspace(1)* nocapture %d1,
117-
%spirv.Image._uint_2_0_0_0_0_0_0 addrspace(1)* nocapture %e1,
118-
%spirv.Image._half_1_0_1_0_0_0_0 addrspace(1)* nocapture %f1,
119-
%spirv.Image._float_5_0_0_0_0_0_0 addrspace(1)* nocapture %g1,
120-
%spirv.Image._void_0_0_0_0_0_0_1 addrspace(1)* nocapture %c2,
121-
%spirv.Image._void_1_0_0_0_0_0_2 addrspace(1)* nocapture %d3) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
113+
%spirv.Pipe._0 addrspace(1)* %a,
114+
%spirv.Pipe._1 addrspace(1)* %b,
115+
%spirv.Image._void_0_0_0_0_0_0_0 addrspace(1)* %c1,
116+
%spirv.Image._int_1_0_0_0_0_0_0 addrspace(1)* %d1,
117+
%spirv.Image._uint_2_0_0_0_0_0_0 addrspace(1)* %e1,
118+
%spirv.Image._half_1_0_1_0_0_0_0 addrspace(1)* %f1,
119+
%spirv.Image._float_5_0_0_0_0_0_0 addrspace(1)* %g1,
120+
%spirv.Image._void_0_0_0_0_0_0_1 addrspace(1)* %c2,
121+
%spirv.Image._void_1_0_0_0_0_0_2 addrspace(1)* %d3) #0 !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
122122
entry:
123123
ret void
124124
}

0 commit comments

Comments
 (0)