Commit 979455ea by Uros Bizjak Committed by Uros Bizjak

re PR target/66274 (gcc6: x86 -m32 emits 64bit register in inline asm)

	PR target/66274
	* config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
	when LEGACY_INT_REGNO_P is processed.

testsuite/ChangeLog:

	PR target/66274
	* gcc.target/i386/pr66274.c: New test.

From-SVN: r223649
parent 4ea9e6c7
2015-05-25 Uros Bizjak <ubizjak@gmail.com>
PR target/66274
* config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
when LEGACY_INT_REGNO_P is processed.
2015-05-25 Alexander Monakov <amonakov@ispras.ru>
* config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
......
......@@ -15230,7 +15230,7 @@ print_reg (rtx x, int code, FILE *file)
case 8:
case 4:
if (LEGACY_INT_REGNO_P (regno))
putc (msize == 8 ? 'r' : 'e', file);
putc (msize == 8 && TARGET_64BIT ? 'r' : 'e', file);
case 16:
case 12:
case 2:
2015-05-25 Uros Bizjak <ubizjak@gmail.com>
PR target/66274
* gcc.target/i386/pr66274.c: New test.
2015-05-25 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/renaming6.ad[sb]: New test.
......
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O" } */
void f()
{
asm ("push %0" : : "r" ((unsigned long long) 456));
}
/* { dg-final { scan-assembler-not "push %r" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment