From e23e1123b61c3938dfea0a60253dde2a407ac8eb Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 19 Jan 2008 19:06:15 +0000 Subject: [PATCH] Backport: 2007-03-21 Richard Sandiford * gcc.target/i386/pr21291.c: Require nonpic or ! ilp32. From-SVN: r131656 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/i386/pr21291.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0e47d83d94e1..3663042fc22a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-01-19 Kaveh R. Ghazi + + Backport: + 2007-03-21 Richard Sandiford + + * gcc.target/i386/pr21291.c: Require nonpic or ! ilp32. + 2008-01-17 Eric Botcazou * gcc.c-torture/compile/20080114-1.c: Use empty asm statements. diff --git a/gcc/testsuite/gcc.target/i386/pr21291.c b/gcc/testsuite/gcc.target/i386/pr21291.c index acfc43df67f9..f7348bdf6e19 100644 --- a/gcc/testsuite/gcc.target/i386/pr21291.c +++ b/gcc/testsuite/gcc.target/i386/pr21291.c @@ -1,4 +1,9 @@ -/* { dg-do compile } */ +/* The asm has 2 "r" in/out operands, 1 earlyclobber "r" output, 1 "r" + input and 2 fixed "r" clobbers (eax and edx), so there are a total of + 6 registers that must not conflict. Add to that the PIC register, + the frame pointer, and the stack pointer, and we've run out of + registers on 32-bit targets. */ +/* { dg-do compile { target { { ! ilp32 } || nonpic } } } */ /* { dg-options "-O" } */ typedef unsigned long bngdigit; -- 2.47.2