diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-12-14 08:01:04 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-12-14 08:01:04 +0100 |
commit | 585dc19ef051959d688e6ea89b41998600480ecb (patch) | |
tree | 9ba14382e9648c4b8cd7f3ac940e43fc882b928a | |
parent | 7ff33c609a64319583223d6d39a89e971f993ecf (diff) | |
download | gcc-585dc19ef051959d688e6ea89b41998600480ecb.zip gcc-585dc19ef051959d688e6ea89b41998600480ecb.tar.gz gcc-585dc19ef051959d688e6ea89b41998600480ecb.tar.bz2 |
testsuite: Fix up pr112904.C test [PR112904]
On Fri, Dec 08, 2023 at 03:12:00PM +0800, liuhongt wrote:
> * g++.target/i386/pr112904.C: New test.
The new test FAILs on i686-linux and even on x86_64-linux I think
it doesn't actually test what was reported, unless one performs testing
with -march= for some XOP enabled CPU or -mxop.
The following patch fixes that, tested on x86_64-linux with
make check-g++ RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-mno-sse/-mno-mmx,-m64\} i386.exp=pr112904.C'
2023-12-14 Jakub Jelinek <jakub@redhat.com>
PR target/112904
* g++.target/i386/pr112904.C: Add dg-do compile, dg-options -mxop
and for ia32 also dg-additional-options -mmmx.
-rw-r--r-- | gcc/testsuite/g++.target/i386/pr112904.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.target/i386/pr112904.C b/gcc/testsuite/g++.target/i386/pr112904.C index 556be92..3a470ad 100644 --- a/gcc/testsuite/g++.target/i386/pr112904.C +++ b/gcc/testsuite/g++.target/i386/pr112904.C @@ -1,3 +1,8 @@ +// PR target/112904 +// { dg-do compile } +// { dg-options "-mxop" } +// { dg-additional-options "-mmmx" { target ia32 } } + typedef _Float16 v4hf __attribute__((vector_size(8))); typedef short v4hi __attribute__((vector_size(8))); typedef _Float16 v2hf __attribute__((vector_size(4))); |