PR target/79729
* config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
gcc_unreachable with output_operand_lossage.
* gcc.target/i386/pr79729.c: New test.
From-SVN: r245781
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/79729
+ * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
+ gcc_unreachable with output_operand_lossage.
+
2017-02-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/79740
fputs ("{rz-sae}", file);
break;
default:
- gcc_unreachable ();
+ output_operand_lossage ("operand is not a specific integer, "
+ "invalid operand code 'R'");
}
if (ASSEMBLER_DIALECT == ASM_ATT)
+2017-02-28 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/79729
+ * gcc.target/i386/pr79729.c: New test.
+
2017-02-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/79740
--- /dev/null
+/* PR target/79729 */
+/* { dg-do compile } */
+
+void
+foo (int x)
+{
+ __asm__ volatile ("# %R0" : : "n" (129)); /* { dg-error "invalid operand code" } */
+}