testsuite: Fix TBAA in {sse,avx}*and*p[sd]*.c tests
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Jan 2021 09:21:03 +0000 (10:21 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 27 Jan 2021 09:22:18 +0000 (10:22 +0100)
commit6cf43433750bbd2837c526e03283f126a6d2c6e6
tree8fb58055385c8ceb528e10c7bb9e7520faa68b07
parent003f0414291d595d2126e6d2e24b281f38f3448f
testsuite: Fix TBAA in {sse,avx}*and*p[sd]*.c tests

This patch drops the no-strict-aliasing hack in m128-check.h and instead
ensures the tests read objects with the right dynamic type.

2021-01-27  Jakub Jelinek  <jakub@redhat.com>

* gcc.target/i386/m128-check.h (CHECK_EXP): Remove
optimize ("no-strict-aliasing") attribute.
* gcc.target/i386/sse-andnps-1.c (TEST): Copy e into float[4]
array to avoid violating TBAA.
* gcc.target/i386/sse2-andpd-1.c (TEST): Copy e.d into double[2]
array to avoid violating TBAA.
* gcc.target/i386/sse-andps-1.c (TEST): Copy e.f into float[4]
array to avoid violating TBAA.
* gcc.target/i386/sse2-andnpd-1.c (TEST): Copy e into double[2]
array to avoid violating TBAA.
gcc/testsuite/gcc.target/i386/m128-check.h
gcc/testsuite/gcc.target/i386/sse-andnps-1.c
gcc/testsuite/gcc.target/i386/sse-andps-1.c
gcc/testsuite/gcc.target/i386/sse2-andnpd-1.c
gcc/testsuite/gcc.target/i386/sse2-andpd-1.c