[llvm-bugs] [Bug 39296] New: [AMDGPU][MC][GFX8+] Add a symbolic name for 1/2pi

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 15 07:12:00 PDT 2018


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

            Bug ID: 39296
           Summary: [AMDGPU][MC][GFX8+] Add a symbolic name for 1/2pi
           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

Currently 1/2pi may only be specified in a numeric form. This is inconvenient
and error-prone. Examples:

    v_add_f16 v0, 0.15915494, v1
    v_add_f64 v[0:1], v[2:3], 0.159154943091895317852646485335

Assembler should support special syntax or a symbolic name for this constant.
For example:

    v_add_f16 v0, INV2PI, v1
    v_add_f64 v[0:1], v[2:3], INV2PI

Any suggestions?

-- 
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/20181015/7e503b20/attachment.html>


More information about the llvm-bugs mailing list