[llvm-bugs] [Bug 32527] New: 'movz reg, #:abs_g0_nc:symbol' rejected by assembler

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Apr 4 17:14:07 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32527

            Bug ID: 32527
           Summary: 'movz reg, #:abs_g0_nc:symbol' rejected by assembler
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: llvm-bugs at lists.llvm.org, phosek at chromium.org

For a -fno-pic -mcmodel=large materialization of &x, clang generates:

        movz    x0, #:abs_g0_nc:x                                               
        movk    x0, #:abs_g1_nc:x                                               
        movk    x0, #:abs_g2_nc:x                                               
        movk    x0, #:abs_g3:x                                                  

However, the assembler refuses the first of those instructions:

x.s:8:11: error: immediate must be an integer in range [0, 65535].              
        movz    x0, #:abs_g0_nc:x                                               

The assembly syntax is valid, and -integrated-as emits the right code.
But text assembly input does not allow the same syntax.
GAS does allow it.

-- 
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/20170405/566df63a/attachment.html>


More information about the llvm-bugs mailing list