[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/25274] Error: can't encode register '%r12' in an instruction re
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/25274] Error: can't encode register '%r12' in an instruction requiring REX prefix |
Date: |
Thu, 12 Dec 2019 20:33:02 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25274
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ac0ab1842de0e4522248ff9805c5c4e3267c8ae7
commit ac0ab1842de0e4522248ff9805c5c4e3267c8ae7
Author: H.J. Lu <address@hidden>
Date: Thu Dec 12 12:25:48 2019 -0800
i386: Also check R12-R15 registers when optimizing testq to testb
Similar to SP, BP, SI and DI registers, R12-R15 registers must use REX
prefix for the low byte register when optimizing
test $imm7, %r64/%r32/%r16 -> test $imm7, %r8
PR gas/25274
* config/tc-i386.c (optimize_encoding): Also check R12-R15
registers for "test $imm7, %r64/%r32/%r16 -> test $imm7, %r8"
optimization.
* testsuite/gas/i386/x86-64-optimize-3.s: Add tests for test
with r12.
* testsuite/gas/i386/x86-64-optimize-3.d: Updated.
* testsuite/gas/i386/x86-64-optimize-3b.d: Likewise.
--
You are receiving this mail because:
You are on the CC list for the bug.