Skip to content

Commit 049c04b

Browse files
committed
More tests
1 parent 3cacd07 commit 049c04b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

llvm/test/MC/AMDGPU/gfx12_asm_sop1.s

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ s_alloc_vgpr 18
99
s_alloc_vgpr s35
1010
// GFX12: encoding: [0x23,0x53,0x80,0xbe]
1111

12+
s_alloc_vgpr m0
13+
// GFX12: encoding: [0x7d,0x53,0x80,0xbe]
14+
15+
s_alloc_vgpr scc
16+
// GFX12: encoding: [0xfd,0x53,0x80,0xbe]
17+
1218
s_sleep_var 0x1234
1319
// GFX12: encoding: [0xff,0x58,0x80,0xbe,0x34,0x12,0x00,0x00]
1420

llvm/test/MC/AMDGPU/gfx12_err.s

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,12 @@ s_prefetch_inst s[14:15], 0xffffff, m0, 7
116116

117117
s_endpgm_ordered_ps_done
118118
// GFX12-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: instruction not supported on this GPU
119+
120+
s_alloc_vgpr v0
121+
// GFX12-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
122+
123+
s_alloc_vgpr exec
124+
// GFX12-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
125+
126+
s_alloc_vgpr vcc
127+
// GFX12-ERR: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction

0 commit comments

Comments
 (0)