Skip to content

Commit b94987b

Browse files
authored
[AMDGPU] gfx1250 checks in out of range restisters test. NFC. (#157540)
1 parent 69f1aeb commit b94987b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

llvm/test/MC/AMDGPU/out-of-range-registers.s

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,40 @@
22
// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,SICIVI9-ERR,SIVICI-ERR,VI-ERR --implicit-check-not=error: %s
33
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX9-ERR,SICIVI9-ERR --implicit-check-not=error: %s
44
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX10-ERR --implicit-check-not=error: %s
5+
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 %s 2>&1 | FileCheck -check-prefixes=GCN-ERR,GFX1250-ERR --implicit-check-not=error: %s
56

67
// RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti -show-encoding %s | FileCheck -check-prefix=SIVICI %s
78
// RUN: not llvm-mc -triple=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefixes=SIVICI,CIVI9 %s
89
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GFX9,CIVI9 %s
910
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck -check-prefix=GFX10 %s
11+
// RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s | FileCheck -check-prefix=GFX1250 %s
1012

1113
s_add_i32 s106, s0, s1
1214
// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range
1315

1416
s_add_i32 s104, s0, s1
1517
// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s104 register not available on this GPU
1618
// GFX10: s_add_i32 s104, s0, s1 ; encoding:
19+
// GFX1250: s_add_co_i32 s104, s0, s1 ; encoding:
1720

1821
s_add_i32 s105, s0, s1
1922
// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s105 register not available on this GPU
2023
// GFX10: s_add_i32 s105, s0, s1 ; encoding:
24+
// GFX1250: s_add_co_i32 s105, s0, s1 ; encoding:
2125

2226
v_add_i32 v256, v0, v1
2327
// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
2428
// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range
2529
// SI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range
2630
// VI-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: instruction not supported on this GPU
31+
// GFX1250-ERR: :[[@LINE-5]]:{{[0-9]+}}: error: register index is out of range
2732

2833
v_add_i32 v257, v0, v1
2934
// GFX10-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
3035
// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range
3136
// SI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range
3237
// VI-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: instruction not supported on this GPU
38+
// GFX1250-ERR: :[[@LINE-5]]:{{[0-9]+}}: error: register index is out of range
3339

3440
s_mov_b64 s[0:17], -1
3541
// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid or unsupported register size
@@ -43,6 +49,7 @@ s_mov_b64 s[105:106], -1
4349
s_mov_b64 s[104:105], -1
4450
// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: s[104:105] register not available on this GPU
4551
// GFX10: s_mov_b64 s[104:105], -1 ; encoding:
52+
// GFX1250: s_mov_b64 s[104:105], -1 ; encoding:
4653

4754
s_load_dwordx4 s[102:105], s[2:3], s4
4855
// GCN-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid register alignment
@@ -90,28 +97,46 @@ s_mov_b32 ttmp12, 0
9097
// GFX9: s_mov_b32 ttmp12, 0 ; encoding:
9198
// GFX10: s_mov_b32 ttmp12, 0 ; encoding:
9299
// SIVICI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: ttmp12 register not available on this GPU
100+
// GFX1250: s_mov_b32 ttmp12, 0 ; encoding:
93101

94102
s_mov_b32 ttmp15, 0
95103
// GFX9: s_mov_b32 ttmp15, 0 ; encoding:
96104
// GFX10: s_mov_b32 ttmp15, 0 ; encoding:
97105
// SIVICI-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: ttmp15 register not available on this GPU
106+
// GFX1250: s_mov_b32 ttmp15, 0 ; encoding:
98107

99108
s_mov_b32 flat_scratch_lo, 0
100109
// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU
101110
// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU
102111
// CIVI9: s_mov_b32 flat_scratch_lo, 0 ; encoding: [0x80,0x00,0xe6,0xbe]
112+
// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: flat_scratch_lo register not available on this GPU
103113

104114
s_mov_b32 flat_scratch_hi, 0
105115
// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU
106116
// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU
107117
// CIVI9: s_mov_b32 flat_scratch_hi, 0 ; encoding: [0x80,0x00,0xe7,0xbe]
118+
// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: flat_scratch_hi register not available on this GPU
108119

109120
s_mov_b32 tma_lo, 0
110121
// SIVICI: s_mov_b32 tma_lo, 0 ; encoding:
111122
// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: tma_lo register not available on this GPU
112123
// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: tma_lo register not available on this GPU
124+
// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: tma_lo register not available on this GPU
113125

114126
s_mov_b32 tba_lo, 0
115127
// SIVICI: s_mov_b32 tba_lo, 0 ; encoding:
116128
// GFX9-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: tba_lo register not available on this GPU
117129
// GFX10-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: tba_lo register not available on this GPU
130+
// GFX1250-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: tba_lo register not available on this GPU
131+
132+
v_cvt_f32_f64 v0, v[255:256]
133+
// SICIVI9-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: register index is out of range
134+
// GFX10-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range
135+
// GFX1250-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: invalid register class: vgpr tuples must be 64 bit aligned
136+
137+
v_mqsad_u32_u8 v[254:257], v[0:1], -4.0, v[2:5]
138+
// SI-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
139+
// VI-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: register index is out of range
140+
// GFX9-ERR: :[[@LINE-3]]:{{[0-9]+}}: error: register index is out of range
141+
// GFX10-ERR: :[[@LINE-4]]:{{[0-9]+}}: error: register index is out of range
142+
// GFX1250: v_mqsad_u32_u8 v[254:257], v[0:1], -4.0, v[2:5] ; encoding: [0xfe,0x00,0x3d,0xd6,0x00,0xef,0x09,0x04]

0 commit comments

Comments
 (0)