|
1 | 1 | # RUN: %python %s --target=cuda --tests=suld,sust,tex,tld4 --gen-list=%t.list > %t-cuda.ll
|
2 |
| -# RUN: llc -mcpu=sm_60 -mattr=+ptx43 %t-cuda.ll -verify-machineinstrs -o - | FileCheck %t-cuda.ll --check-prefixes=CHECK,CHECK-CUDA |
| 2 | +# RUN: llc -mcpu=sm_60 -mattr=+ptx43 %t-cuda.ll -verify-machineinstrs -o - | FileCheck %t-cuda.ll |
3 | 3 | # RUN: %if ptxas %{ llc -mcpu=sm_60 -mattr=+ptx43 %t-cuda.ll -verify-machineinstrs -o - | %ptxas-verify %}
|
4 | 4 |
|
5 | 5 | # We only need to run this second time for texture tests, because
|
6 | 6 | # there is a difference between unified and non-unified intrinsics.
|
7 | 7 | #
|
8 | 8 | # RUN: %python %s --target=nvcl --tests=suld,sust,tex,tld4 --gen-list-append --gen-list=%t.list > %t-nvcl.ll
|
9 |
| -# RUN: llc %t-nvcl.ll -verify-machineinstrs -o - | FileCheck %t-nvcl.ll --check-prefixes=CHECK,CHECK-NVCL |
| 9 | +# RUN: llc %t-nvcl.ll -verify-machineinstrs -o - | FileCheck %t-nvcl.ll |
10 | 10 | # RUN: %if ptxas %{ llc %t-nvcl.ll -verify-machineinstrs -o - | %ptxas-verify %}
|
11 | 11 |
|
12 | 12 | # Verify that all instructions and intrinsics defined in TableGen
|
@@ -269,9 +269,7 @@ def gen_suld_tests(target, global_surf):
|
269 | 269 | ret void
|
270 | 270 | }
|
271 | 271 | ; CHECK-LABEL: .entry ${test_name}_global
|
272 |
| - ; CHECK-CUDA: mov.u64 [[REG${reg_id}:%.*]], ${global_surf} |
273 |
| - ; CHECK-CUDA: ${instruction} ${reg_ret}, [[[REG${reg_id}]], ${reg_access}] |
274 |
| - ; CHECK-NVCL: ${instruction} ${reg_ret}, [${global_surf}, ${reg_access}] |
| 272 | + ; CHECK: ${instruction} ${reg_ret}, [${global_surf}, ${reg_access}] |
275 | 273 | define void @${test_name}_global(${retty}* %ret, ${access}) {
|
276 | 274 | %gs = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_surf})
|
277 | 275 | %val = tail call ${retty} @${intrinsic}(i64 %gs, ${access})
|
@@ -314,7 +312,6 @@ def gen_suld_tests(target, global_surf):
|
314 | 312 | "reg_ret": get_ptx_vec_reg(vec, dtype),
|
315 | 313 | "reg_surf": get_ptx_surface(target),
|
316 | 314 | "reg_access": get_ptx_surface_access(geom),
|
317 |
| - "reg_id": get_table_gen_id(), |
318 | 315 | }
|
319 | 316 | gen_test(template, params)
|
320 | 317 | generated_items.append((params["intrinsic"], params["instruction"]))
|
@@ -364,9 +361,7 @@ def gen_sust_tests(target, global_surf):
|
364 | 361 | ret void
|
365 | 362 | }
|
366 | 363 | ; CHECK-LABEL: .entry ${test_name}_global
|
367 |
| - ; CHECK-CUDA: mov.u64 [[REG${reg_id}:%.*]], ${global_surf} |
368 |
| - ; CHECK-CUDA: ${instruction} [[[REG${reg_id}]], ${reg_access}], ${reg_value} |
369 |
| - ; CHECK-NVCL: ${instruction} [${global_surf}, ${reg_access}], ${reg_value} |
| 364 | + ; CHECK: ${instruction} [${global_surf}, ${reg_access}], ${reg_value} |
370 | 365 | define void @${test_name}_global(${value}, ${access}) {
|
371 | 366 | %gs = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_surf})
|
372 | 367 | tail call void @${intrinsic}(i64 %gs, ${access}, ${value})
|
@@ -420,7 +415,6 @@ def gen_sust_tests(target, global_surf):
|
420 | 415 | "reg_value": get_ptx_vec_reg(vec, ctype),
|
421 | 416 | "reg_surf": get_ptx_surface(target),
|
422 | 417 | "reg_access": get_ptx_surface_access(geom),
|
423 |
| - "reg_id": get_table_gen_id(), |
424 | 418 | }
|
425 | 419 | gen_test(template, params)
|
426 | 420 | generated_items.append((params["intrinsic"], params["instruction"]))
|
@@ -627,9 +621,7 @@ def gen_tex_tests(target, global_tex, global_sampler):
|
627 | 621 | ret void
|
628 | 622 | }
|
629 | 623 | ; CHECK-LABEL: .entry ${test_name}_global
|
630 |
| - ; CHECK-CUDA: mov.u64 [[REG${reg_id}:%.*]], ${global_tex} |
631 |
| - ; CHECK-CUDA: ${instruction} ${ptx_ret}, [[[REG${reg_id}]], ${ptx_global_sampler} ${ptx_access}] |
632 |
| - ; CHECK-NVCL: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}] |
| 624 | + ; CHECK: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}] |
633 | 625 | define void @${test_name}_global(${retty}* %ret, ${access}) {
|
634 | 626 | %gt = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_tex})
|
635 | 627 | ${get_sampler_handle}
|
@@ -713,7 +705,6 @@ def gen_tex_tests(target, global_tex, global_sampler):
|
713 | 705 | "ptx_tex": get_ptx_texture(target),
|
714 | 706 | "ptx_access": get_ptx_texture_access(geom, ctype),
|
715 | 707 | "ptx_global_sampler": get_ptx_global_sampler(target, global_sampler),
|
716 |
| - "reg_id": get_table_gen_id(), |
717 | 708 | }
|
718 | 709 | gen_test(template, params)
|
719 | 710 | generated_items.append((params["intrinsic"], params["instruction"]))
|
@@ -814,9 +805,7 @@ def gen_tld4_tests(target, global_tex, global_sampler):
|
814 | 805 | ret void
|
815 | 806 | }
|
816 | 807 | ; CHECK-LABEL: .entry ${test_name}_global
|
817 |
| - ; CHECK-CUDA: mov.u64 [[REG${reg_id}:%.*]], ${global_tex} |
818 |
| - ; CHECK-CUDA: ${instruction} ${ptx_ret}, [[[REG${reg_id}]], ${ptx_global_sampler} ${ptx_access}] |
819 |
| - ; CHECK-NVCL: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}] |
| 808 | + ; CHECK: ${instruction} ${ptx_ret}, [${global_tex}, ${ptx_global_sampler} ${ptx_access}] |
820 | 809 | define void @${test_name}_global(${retty}* %ret, ${access}) {
|
821 | 810 | %gt = tail call i64 @llvm.nvvm.texsurf.handle.internal.p1i64(i64 addrspace(1)* @${global_tex})
|
822 | 811 | ${get_sampler_handle}
|
@@ -862,7 +851,6 @@ def gen_tld4_tests(target, global_tex, global_sampler):
|
862 | 851 | "ptx_tex": get_ptx_texture(target),
|
863 | 852 | "ptx_access": get_ptx_tld4_access(geom),
|
864 | 853 | "ptx_global_sampler": get_ptx_global_sampler(target, global_sampler),
|
865 |
| - "reg_id": get_table_gen_id(), |
866 | 854 | }
|
867 | 855 | gen_test(template, params)
|
868 | 856 | generated_items.append((params["intrinsic"], params["instruction"]))
|
|
0 commit comments