https://sourceware.org/bugzilla/show_bug.cgi?id=25274

            Bug ID: 25274
           Summary: Error: can't encode register '%r12' in an instruction
                    requiring REX prefix
           Product: binutils
           Version: 2.34 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

[hjl@gnu-cfl-1 tmp]$ cat a.s
testq   $63,%r11
testq   $63,%r12
[hjl@gnu-cfl-1 tmp]$ as -Os -o a.o a.s
a.s: Assembler messages:
a.s:2: Error: can't encode register '%r12' in an instruction requiring REX
prefix.
[hjl@gnu-cfl-1 tmp]$ 

Similar to SP, BP, SI and DI registers, R12-R15 registers must be updated
to R12b-R15b when optimizing

test $imm7, %r64/%r32/%r16  -> test $imm7, %r8

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to