Skip to content

Commit 8f7e8c4

Browse files
authored
AMDGPU: Fix using unaligned VGPR in literal test (#157817)
Make sure the tested error is the literal error, not for unaligned registers.
1 parent 0b28614 commit 8f7e8c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/MC/AMDGPU/vop3-literal.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ v_div_fmas_f64 v[6:7], 0x12345678, 0x12345678, 0x12345678
488488
// GFX1250: v_div_fmas_f64 v[6:7], 0x12345678, 0x12345678, 0x12345678 ; encoding: [0x06,0x00,0x38,0xd6,0xff,0xfe,0xfd,0x03,0x78,0x56,0x34,0x12]
489489
// GFX9-ERR: :[[@LINE-3]]:48: error: literal operands are not supported
490490

491-
v_div_fmas_f64 v[5:6], v[1:2], 0x123457, 0x123456
491+
v_div_fmas_f64 v[4:5], v[2:3], 0x123457, 0x123456
492492
// GFX9-ERR: :[[@LINE-1]]:42: error: literal operands are not supported
493493
// GFX10-ERR: :[[@LINE-2]]:42: error: only one unique literal operand is allowed
494494
// GFX1250-ERR: :[[@LINE-3]]:42: error: only one unique literal operand is allowed
@@ -503,7 +503,7 @@ v_ldexp_f64 v[6:7], 0.12345, 0x3fbf9a6b
503503
// GFX1250: v_ldexp_f64 v[6:7], 0x3fbf9a6b, 0x3fbf9a6b ; encoding: [0x06,0x00,0x2b,0xd7,0xff,0xfe,0x01,0x00,0x6b,0x9a,0xbf,0x3f]
504504
// GFX9-ERR: :[[@LINE-3]]:30: error: literal operands are not supported
505505

506-
v_ldexp_f64 v[5:6], 0.12345, 0x3fbf9a6c
506+
v_ldexp_f64 v[4:5], 0.12345, 0x3fbf9a6c
507507
// GFX9-ERR: :[[@LINE-1]]:30: error: literal operands are not supported
508508
// GFX10-ERR: :[[@LINE-2]]:30: error: only one unique literal operand is allowed
509509
// GFX1250-ERR: :[[@LINE-3]]:30: error: only one unique literal operand is allowed

0 commit comments

Comments
 (0)