[llvm] r370660 - [AMDGPU][MC][GFX10] Enabled null with 64-bit operands
Dmitry Preobrazhensky via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 06:42:25 PDT 2019
Author: dpreobra
Date: Mon Sep 2 06:42:25 2019
New Revision: 370660
URL: http://llvm.org/viewvc/llvm-project?rev=370660&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/trunk/test/MC/AMDGPU/reg-syntax-extra.s
Modified: llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp?rev=370660&r1=370659&r2=370660&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp Mon Sep 2 06:42:25 2019
@@ -1854,6 +1854,8 @@ static bool isInlineValue(unsigned Reg)
case AMDGPU::SRC_EXECZ:
case AMDGPU::SRC_SCC:
return true;
+ case AMDGPU::SGPR_NULL:
+ return true;
default:
return false;
}
Modified: llvm/trunk/test/MC/AMDGPU/reg-syntax-extra.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AMDGPU/reg-syntax-extra.s?rev=370660&r1=370659&r2=370660&view=diff
==============================================================================
--- llvm/trunk/test/MC/AMDGPU/reg-syntax-extra.s (original)
+++ llvm/trunk/test/MC/AMDGPU/reg-syntax-extra.s Mon Sep 2 06:42:25 2019
@@ -116,6 +116,14 @@ v_mul_f32 v0, null, v2
// NOSICIVI: error:
// GFX10: v_mul_f32_e32 v0, null, v2 ; encoding: [0x7d,0x04,0x00,0x10]
+v_mul_f64 v[0:1], null, null
+// NOSICIVI: error:
+// GFX10: v_mul_f64 v[0:1], null, null ; encoding: [0x00,0x00,0x65,0xd5,0x7d,0xfa,0x00,0x00]
+
s_add_u32 null, null, null
// NOSICIVI: error:
// GFX10: s_add_u32 null, null, null ; encoding: [0x7d,0x7d,0x7d,0x80]
+
+s_not_b64 s[2:3], null
+// NOSICIVI: error:
+// GFX10: s_not_b64 s[2:3], null ; encoding: [0x7d,0x08,0x82,0xbe]
More information about the llvm-commits
mailing list