From 7cbe41bc7f47d070f3e32bd70ec1087424fe8b37 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 6 Aug 2008 16:26:13 +0000 Subject: [PATCH] simplify testcase [r21019] --- parsetest/cp_error040.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/parsetest/cp_error040.c b/parsetest/cp_error040.c index 9f134e6..1c66d8f 100644 --- a/parsetest/cp_error040.c +++ b/parsetest/cp_error040.c @@ -1,12 +1,11 @@ -long lrint (double x) +long ret42(void) { long retval; - __asm__ __volatile__ - ("fistpl %0" : "=m" (retval) : "t" (x) : "st"); + __asm__("movl $42, %0" : "=m" (retval)); return retval; } int main(void) { - return 0; + return ret42() != 42; } -- 2.20.1