|
| 1 | +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 |
1 | 2 | ; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -mattr=+real-true16 < %s | FileCheck -enable-var-scope -check-prefixes=GFX11 %s |
2 | 3 |
|
3 | | -; GFX11-LABEL: {{^}}s_input_output_i16: |
4 | | -; GFX11: s_mov_b32 s[[REG:[0-9]+]], -1 |
5 | | -; GFX11: ; use s[[REG]] |
6 | 4 | define amdgpu_kernel void @s_input_output_i16() #0 { |
| 5 | +; GFX11-LABEL: s_input_output_i16: |
| 6 | +; GFX11: ; %bb.0: |
| 7 | +; GFX11-NEXT: ;;#ASMSTART |
| 8 | +; GFX11-NEXT: s_mov_b32 s0, -1 |
| 9 | +; GFX11-NEXT: ;;#ASMEND |
| 10 | +; GFX11-NEXT: s_and_b32 s0, s0, 0xffff |
| 11 | +; GFX11-NEXT: ;;#ASMSTART |
| 12 | +; GFX11-NEXT: ; use s0 |
| 13 | +; GFX11-NEXT: ;;#ASMEND |
| 14 | +; GFX11-NEXT: s_endpgm |
7 | 15 | %v = tail call i16 asm sideeffect "s_mov_b32 $0, -1", "=s"() |
8 | 16 | tail call void asm sideeffect "; use $0", "s"(i16 %v) #0 |
9 | 17 | ret void |
10 | 18 | } |
11 | 19 |
|
12 | | -; GFX11-LABEL: {{^}}s_input_output_f16: |
13 | | -; GFX11: s_mov_b32 s[[REG:[0-9]+]], -1 |
14 | | -; GFX11: ; use s[[REG]] |
15 | 20 | define amdgpu_kernel void @s_input_output_f16() #0 { |
| 21 | +; GFX11-LABEL: s_input_output_f16: |
| 22 | +; GFX11: ; %bb.0: |
| 23 | +; GFX11-NEXT: ;;#ASMSTART |
| 24 | +; GFX11-NEXT: s_mov_b32 s0, -1 |
| 25 | +; GFX11-NEXT: ;;#ASMEND |
| 26 | +; GFX11-NEXT: ;;#ASMSTART |
| 27 | +; GFX11-NEXT: ; use s0 |
| 28 | +; GFX11-NEXT: ;;#ASMEND |
| 29 | +; GFX11-NEXT: s_endpgm |
16 | 30 | %v = tail call half asm sideeffect "s_mov_b32 $0, -1", "=s"() #0 |
17 | 31 | tail call void asm sideeffect "; use $0", "s"(half %v) |
18 | 32 | ret void |
19 | 33 | } |
20 | 34 |
|
21 | | -; GFX11-LABEL: {{^}}v_input_output_f16: |
22 | | -; GFX11: v_mov_b16 v[[REG:[0-9]+.(l|h)]], -1 |
23 | | -; GFX11: ; use v[[REG]] |
24 | 35 | define amdgpu_kernel void @v_input_output_f16() #0 { |
| 36 | +; GFX11-LABEL: v_input_output_f16: |
| 37 | +; GFX11: ; %bb.0: |
| 38 | +; GFX11-NEXT: ;;#ASMSTART |
| 39 | +; GFX11-NEXT: v_mov_b16 v0.l, -1 |
| 40 | +; GFX11-NEXT: ;;#ASMEND |
| 41 | +; GFX11-NEXT: ;;#ASMSTART |
| 42 | +; GFX11-NEXT: ; use v0.l |
| 43 | +; GFX11-NEXT: ;;#ASMEND |
| 44 | +; GFX11-NEXT: s_endpgm |
25 | 45 | %v = tail call half asm sideeffect "v_mov_b16 $0, -1", "=v"() #0 |
26 | 46 | tail call void asm sideeffect "; use $0", "v"(half %v) |
27 | 47 | ret void |
28 | 48 | } |
29 | 49 |
|
30 | | -; GFX11-LABEL: {{^}}v_input_output_i16: |
31 | | -; GFX11: v_mov_b16 v[[REG:[0-9]+.(l|h)]], -1 |
32 | | -; GFX11: ; use v[[REG]] |
33 | 50 | define amdgpu_kernel void @v_input_output_i16() #0 { |
| 51 | +; GFX11-LABEL: v_input_output_i16: |
| 52 | +; GFX11: ; %bb.0: |
| 53 | +; GFX11-NEXT: ;;#ASMSTART |
| 54 | +; GFX11-NEXT: v_mov_b16 v0.l, -1 |
| 55 | +; GFX11-NEXT: ;;#ASMEND |
| 56 | +; GFX11-NEXT: ;;#ASMSTART |
| 57 | +; GFX11-NEXT: ; use v0.l |
| 58 | +; GFX11-NEXT: ;;#ASMEND |
| 59 | +; GFX11-NEXT: s_endpgm |
34 | 60 | %v = tail call i16 asm sideeffect "v_mov_b16 $0, -1", "=v"() #0 |
35 | 61 | tail call void asm sideeffect "; use $0", "v"(i16 %v) |
36 | 62 | ret void |
37 | 63 | } |
38 | 64 |
|
39 | | -; GFX11-LABEL: {{^}}i16_imm_input_phys_vgpr_lo: |
40 | | -; GFX11: v_mov_b16_e32 v0.l, -1 |
41 | | -; GFX11: ; use v0.l |
42 | 65 | define amdgpu_kernel void @i16_imm_input_phys_vgpr_lo() { |
| 66 | +; GFX11-LABEL: i16_imm_input_phys_vgpr_lo: |
| 67 | +; GFX11: ; %bb.0: ; %entry |
| 68 | +; GFX11-NEXT: v_mov_b16_e32 v0.l, -1 |
| 69 | +; GFX11-NEXT: ;;#ASMSTART |
| 70 | +; GFX11-NEXT: ; use v0.l |
| 71 | +; GFX11-NEXT: ;;#ASMEND |
| 72 | +; GFX11-NEXT: s_endpgm |
43 | 73 | entry: |
44 | 74 | call void asm sideeffect "; use $0 ", "{v0.l}"(i16 65535) |
45 | 75 | ret void |
46 | 76 | } |
47 | 77 |
|
48 | | -; GFX11-LABEL: {{^}}i16_imm_input_phys_vgpr_hi: |
49 | | -; GFX11: v_mov_b16_e32 v0.h, -1 |
50 | | -; GFX11: ; use v0.h |
51 | 78 | define amdgpu_kernel void @i16_imm_input_phys_vgpr_hi() { |
| 79 | +; GFX11-LABEL: i16_imm_input_phys_vgpr_hi: |
| 80 | +; GFX11: ; %bb.0: ; %entry |
| 81 | +; GFX11-NEXT: v_mov_b16_e32 v0.h, -1 |
| 82 | +; GFX11-NEXT: ;;#ASMSTART |
| 83 | +; GFX11-NEXT: ; use v0.h |
| 84 | +; GFX11-NEXT: ;;#ASMEND |
| 85 | +; GFX11-NEXT: s_endpgm |
52 | 86 | entry: |
53 | 87 | call void asm sideeffect "; use $0 ", "{v0.h}"(i16 65535) |
54 | 88 | ret void |
|
0 commit comments