Fix PR 62120.
gcc/
2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
PR middle-end/62120
* varasm.c (decode_reg_name_and_count): Check availability for
registers from ADDITIONAL_REGISTER_NAMES.
testsuite/
2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
PR middle-end/62120
* gcc.target/i386/avx512f-additional-reg-names.c: Use register valid
in 32-bit mode.
* gcc.target/i386/pr62120.c: New.
From-SVN: r215729
+2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
+
+ PR middle-end/62120
+ * varasm.c (decode_reg_name_and_count): Check availability for
+ registers from ADDITIONAL_REGISTER_NAMES.
+
2014-09-30 David Malcolm <dmalcolm@redhat.com>
PR plugins/63410
+2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
+
+ PR middle-end/62120
+ * gcc.target/i386/avx512f-additional-reg-names.c: Use register valid
+ in 32-bit mode.
+ * gcc.target/i386/pr62120.c: New.
+
2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.target/aarch64/simd/vqdmullh_laneq_s16.c: New.
void foo ()
{
- register int zmm_var asm ("zmm9") __attribute__((unused));
+ register int zmm_var asm ("zmm6") __attribute__((unused));
__asm__ __volatile__("vxorpd %%zmm0, %%zmm0, %%zmm7\n" : : : "zmm7" );
}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-mno-sse" } */
+
+void foo ()
+{
+ register int zmm_var asm ("ymm9");/* { dg-error "invalid register name" } */
+ register int zmm_var2 asm ("23");/* { dg-error "invalid register name" } */
+}
if (asmspec[0] != 0 && i < 0)
{
i = atoi (asmspec);
- if (i < FIRST_PSEUDO_REGISTER && i >= 0)
+ if (i < FIRST_PSEUDO_REGISTER && i >= 0 && reg_names[i][0])
return i;
else
return -2;
for (i = 0; i < (int) ARRAY_SIZE (table); i++)
if (table[i].name[0]
- && ! strcmp (asmspec, table[i].name))
+ && ! strcmp (asmspec, table[i].name)
+ && reg_names[table[i].number][0])
return table[i].number;
}
#endif /* ADDITIONAL_REGISTER_NAMES */