From: Segher Boessenkool Date: Wed, 11 Nov 2015 14:21:25 +0000 (+0100) Subject: rs6000: Extend 20050603-3.c testcase to 64-bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bf5130af0d1c19855f244ae874180ed28f1cb3e;p=gcc.git rs6000: Extend 20050603-3.c testcase to 64-bit The testcase used to fail on 64-bit, but it was disabled there. This patch makes it run there, and beefs up the checking of the generated code a bit. gcc/testsuite/ * gcc.target/powerpc/20050603-3.c: Don't restrict to ilp32. Do more tests for the expected generated code. From-SVN: r230167 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4637d5fc6a8..42ab86d223b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-11-11 Segher Boessenkool + + * gcc.target/powerpc/20050603-3.c: Don't restrict to ilp32. Do more + tests for the expected generated code. + 2015-11-11 Simon Dardis * gcc.target/mips/split-ds-sequence.c: New test. diff --git a/gcc/testsuite/gcc.target/powerpc/20050603-3.c b/gcc/testsuite/gcc.target/powerpc/20050603-3.c index 0f328e1711f..4017d34f429 100644 --- a/gcc/testsuite/gcc.target/powerpc/20050603-3.c +++ b/gcc/testsuite/gcc.target/powerpc/20050603-3.c @@ -1,15 +1,19 @@ -/* { dg-do compile { target { ilp32 } } } */ +/* { dg-do compile } */ /* { dg-options "-O2" } */ -struct Q +struct Q { long x:20; long y:4; long z:8; }b; -/* This should generate a single rl[w]imi. */ +/* This should generate a single rl[wd]imi. */ void rotins (unsigned int x) { b.y = (x<<12) | (x>>20); } -/* { dg-final { scan-assembler-not "inm" } } */ +/* { dg-final { scan-assembler-not {\mrlwinm} } } */ +/* { dg-final { scan-assembler-not {\mrldic} } } */ +/* { dg-final { scan-assembler-not {\mrot[lr]} } } */ +/* { dg-final { scan-assembler-not {\ms[lr][wd]} } } */ +/* { dg-final { scan-assembler-times {\mrl[wd]imi} 1 } } */