https://bugs.llvm.org/show_bug.cgi?id=43359
Bug ID: 43359
Summary: [AMDGPU][MC] Relocatable expressions are not counted
as literals
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: AMDGPU
Assignee: unassignedb...@nondot.org
Reporter: dpreobrazhen...@luxoft.com
CC: llvm-bugs@lists.llvm.org
Relocatable expressions may be used as operands; however they are not accounted
for when computing the total number of literals used by an instruction.
Examples:
// All GPUs
s_sub_u32 s0, 123, 123 // ok
s_sub_u32 s0, 123, 456 // error
s_sub_u32 s0, 123, x // ok, but should trigger an error
// GFX10
v_bfe_u32 v0, v1, 123, 123 // ok
v_bfe_u32 v0, v1, 123, 456 // error
v_bfe_u32 v0, v1, 123, x // ok, but should trigger an error
// GFX9
v_bfe_u32 v0, v2, v3, v4 // ok
v_bfe_u32 v0, v2, v3, 123 // error
v_bfe_u32 v0, v2, v3, x // breaks assembler (should trigger an error)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs