[llvm-bugs] [Bug 43359] New: [AMDGPU][MC] Relocatable expressions are not counted as literals
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 19 06:11:27 PDT 2019
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: unassignedbugs at nondot.org
Reporter: dpreobrazhensky at luxoft.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190919/bfe8e72b/attachment-0001.html>
More information about the llvm-bugs
mailing list