Commit 8a915b87 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/79729 (ICE in ix86_print_operand, at config/i386/i386.c:18231)

	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
parent 41aa3a38
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
......
......@@ -18234,7 +18234,8 @@ ix86_print_operand (FILE *file, rtx x, int code)
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
......
/* PR target/79729 */
/* { dg-do compile } */
void
foo (int x)
{
__asm__ volatile ("# %R0" : : "n" (129)); /* { dg-error "invalid operand code" } */
}
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