https://bugs.llvm.org/show_bug.cgi?id=40917

            Bug ID: 40917
           Summary: [AMDGPU][MC][GFX9] Invalid handling of fp constants by
                    buffer_atomic* opcodes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AMDGPU
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

buffer_atomic* opcodes accept fp inline constants for src2, but they are
encoded as 0:

    buffer_atomic_add v5, off, s[8:11], 1.0 offset:4095 glc

result in the following code:

    [0xff,0x4f,0x08,0xe1,0x00,0x05,0x02,0x80]
    buffer_atomic_add v5, off, s[8:11], 0 offset:4095 glc

Moreover, inv2pi specified as src2 triggers an exception.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to