Skip to content

Commit 9c68edd

Browse files
committed
[AMDGPU][MC][GFX10] Enabled null with 64-bit operands
See Bug 42745: https://bugs.llvm.org/show_bug.cgi?id=42745 Reviewers: atamazov, arsenm https://reviews.llvm.org/D65231 llvm-svn: 370660
1 parent 561c399 commit 9c68edd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,8 @@ static bool isInlineValue(unsigned Reg) {
18541854
case AMDGPU::SRC_EXECZ:
18551855
case AMDGPU::SRC_SCC:
18561856
return true;
1857+
case AMDGPU::SGPR_NULL:
1858+
return true;
18571859
default:
18581860
return false;
18591861
}

llvm/test/MC/AMDGPU/reg-syntax-extra.s

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ v_mul_f32 v0, null, v2
116116
// NOSICIVI: error:
117117
// GFX10: v_mul_f32_e32 v0, null, v2 ; encoding: [0x7d,0x04,0x00,0x10]
118118

119+
v_mul_f64 v[0:1], null, null
120+
// NOSICIVI: error:
121+
// GFX10: v_mul_f64 v[0:1], null, null ; encoding: [0x00,0x00,0x65,0xd5,0x7d,0xfa,0x00,0x00]
122+
119123
s_add_u32 null, null, null
120124
// NOSICIVI: error:
121125
// GFX10: s_add_u32 null, null, null ; encoding: [0x7d,0x7d,0x7d,0x80]
126+
127+
s_not_b64 s[2:3], null
128+
// NOSICIVI: error:
129+
// GFX10: s_not_b64 s[2:3], null ; encoding: [0x7d,0x08,0x82,0xbe]

0 commit comments

Comments
 (0)