From 900bcda39987c46f4c673ec5f6cf7b6c60ea34db Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 10 Jun 2016 20:40:37 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/pr68843-2.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 932567e1bd4..f866a434087 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-06-10 Jakub Jelinek + + 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 PR c/71392 diff --git a/gcc/testsuite/gcc.target/i386/pr68843-2.c b/gcc/testsuite/gcc.target/i386/pr68843-2.c index 652a5d3ea45..a7bd86c2c5a 100644 --- a/gcc/testsuite/gcc.target/i386/pr68843-2.c +++ b/gcc/testsuite/gcc.target/i386/pr68843-2.c @@ -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"); -- 2.30.2