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
+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.
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.
--- /dev/null
+/* { 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" } } */