diff options
author | Roger Sayle <roger@nextmovesoftware.com> | 2021-10-08 09:33:38 +0100 |
---|---|---|
committer | Roger Sayle <roger@nextmovesoftware.com> | 2021-10-08 09:33:38 +0100 |
commit | 90285ce98f3c69f275c05397f7c74d22462edc05 (patch) | |
tree | f74d3d8f3f5b5807f269b58f014dc7e61aebe450 /gcc | |
parent | f49e3d28be44179f07b8a06159139ce77096dda7 (diff) | |
download | gcc-90285ce98f3c69f275c05397f7c74d22462edc05.zip gcc-90285ce98f3c69f275c05397f7c74d22462edc05.tar.gz gcc-90285ce98f3c69f275c05397f7c74d22462edc05.tar.bz2 |
Tweak new test cases for -march=cascadelake strangeness.
As reported by Sunil's tester, -march=cascadelake triggers some SUBREG
non-determinacy in the generated assembler for my new tests. Fixed
by updating the regular expressions to match either the zero or sign
extended forms. I'm testing a backend patch that may help with the
underlying cause of these differences.
2021-10-08 Roger Sayle <roger@nextmovesoftware.com>
gcc/testsuite/ChangeLog
* gcc.target/i386/sse2-mmx-paddsb-2.c: Test for -128 or 128.
* gcc.target/i386/sse2-mmx-paddusb-2.c: Test for -1 or 255.
* gcc.target/i386/sse2-mmx-psubsb-2.c: Test for -128 or 128.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse2-mmx-paddsb-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse2-mmx-paddusb-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/sse2-mmx-psubsb-2.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/i386/sse2-mmx-paddsb-2.c b/gcc/testsuite/gcc.target/i386/sse2-mmx-paddsb-2.c index c677884..ad4726b 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-mmx-paddsb-2.c +++ b/gcc/testsuite/gcc.target/i386/sse2-mmx-paddsb-2.c @@ -29,5 +29,5 @@ char baz() /* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$3," 1 } } */ /* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$127," 1 } } */ -/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-128," 1 } } */ +/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-?128," 1 } } */ /* { dg-final { scan-assembler-not "paddsb\[ \\t\]+%xmm\[0-9\]+" } } */ diff --git a/gcc/testsuite/gcc.target/i386/sse2-mmx-paddusb-2.c b/gcc/testsuite/gcc.target/i386/sse2-mmx-paddusb-2.c index b20891c..1d3bc8b 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-mmx-paddusb-2.c +++ b/gcc/testsuite/gcc.target/i386/sse2-mmx-paddusb-2.c @@ -20,6 +20,6 @@ char bar() } /* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$3," 1 } } */ -/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-1," 1 } } */ +/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$(?:255|-1)," 1 } } */ /* { dg-final { scan-assembler-not "paddusb\[ \\t\]+%xmm\[0-9\]+" } } */ diff --git a/gcc/testsuite/gcc.target/i386/sse2-mmx-psubsb-2.c b/gcc/testsuite/gcc.target/i386/sse2-mmx-psubsb-2.c index 4fc2920..68b57f2 100644 --- a/gcc/testsuite/gcc.target/i386/sse2-mmx-psubsb-2.c +++ b/gcc/testsuite/gcc.target/i386/sse2-mmx-psubsb-2.c @@ -28,6 +28,6 @@ char baz() } /* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$3," 1 } } */ -/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-128," 1 } } */ +/* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$-?128," 1 } } */ /* { dg-final { scan-assembler-times "movl\[ \\t\]+\\\$127," 1 } } */ /* { dg-final { scan-assembler-not "paddsb\[ \\t\]+%xmm\[0-9\]+" } } */ |