re PR inline-asm/68843 (ICE with "u" input constraint)

PR inline-asm/68843
	* gcc.target/i386/pr68843-2.c: Add dg-do run and empty dg-options.
	(test): Add -masm=intel alternatives.

From-SVN: r237315
This commit is contained in:
Jakub Jelinek 2016-06-10 20:40:37 +02:00 committed by Jakub Jelinek
parent 4d926e3493
commit 900bcda399
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2016-06-10 Jakub Jelinek <jakub@redhat.com>
PR inline-asm/68843
* gcc.target/i386/pr68843-2.c: Add dg-do run and empty dg-options.
(test): Add -masm=intel alternatives.
2016-06-10 Martin Sebor <msebor@redhat.com>
PR c/71392

View File

@ -1,10 +1,13 @@
/* { dg-do run } */
/* { dg-options "" } */
int
__attribute__((noinline, noclone))
test (double y)
{
int a, b;
asm ("fistpl (%1)\n\t"
"movl (%1), %0"
asm ("fistp{l (%1)| DWORD PTR [%1]}\n\t"
"mov{l (%1), %0| %0, DWORD PTR [%1]}"
: "=r" (a)
: "r" (&b), "t" (y)
: "st");