]> gcc.gnu.org Git - gcc.git/commit
testsuite: Fix TBAA in sse*and*p[sd]*.c tests
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Jan 2021 19:02:29 +0000 (20:02 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 26 Jan 2021 19:02:29 +0000 (20:02 +0100)
commite80f1f6b7a339bce1db03567e497658ae32d135e
treec3739665ccdd1e5ac960afcb713871113fa6f9f0
parent9c41bcc59c237aaa629e271f88c20a90cb8e0af5
testsuite: Fix TBAA in sse*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-26  Jakub Jelinek  <jakub@redhat.com>

* gcc.target/powerpc/m128-check.h (CHECK_EXP): Remove
optimize ("no-strict-aliasing") attribute.
* gcc.target/powerpc/sse-andnps-1.c (TEST): Copy e into float[4]
array to avoid violating TBAA.
* gcc.target/powerpc/sse2-andpd-1.c (TEST): Copy e.d into double[2]
array to avoid violating TBAA.
* gcc.target/powerpc/sse-andps-1.c (TEST): Copy e.f into float[4]
array to avoid violating TBAA.
* gcc.target/powerpc/sse2-andnpd-1.c (TEST): Copy e into double[2]
array to avoid violating TBAA.
gcc/testsuite/gcc.target/powerpc/m128-check.h
gcc/testsuite/gcc.target/powerpc/sse-andnps-1.c
gcc/testsuite/gcc.target/powerpc/sse-andps-1.c
gcc/testsuite/gcc.target/powerpc/sse2-andnpd-1.c
gcc/testsuite/gcc.target/powerpc/sse2-andpd-1.c
This page took 0.115876 seconds and 6 git commands to generate.