]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: Use pointers in bswap testcases
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Mar 2019 17:44:56 +0000 (17:44 +0000)
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Mar 2019 17:44:56 +0000 (17:44 +0000)
commit4221d1bb79624fc6b70aaf7e2d64dd0eed3514e5
tree47cb5fcf28684e04421e472cba789d34076559cb
parent3d11a881c9d11b21377488ca0209901c858ea2b9
rs6000: Use pointers in bswap testcases

Currently these bswap testcases use global variables, which causes
problems with -m32: the memory access is a D-form access, and when
combine tries to combine that with the bswap it tries a D-form store
with byte reverse.  That instruction does not exist, and since combine
started with only two insns here it will not try splitting this.

This should be improved, but it is not what this test is testing, and
the "load" case already uses a pointer, so let's do that for the store
case as well.

* gcc.target/powerpc/bswap16.c: Use a pointer instead of a global for
the "store" test as well.
* gcc.target/powerpc/bswap32.c: Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269771 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bswap16.c
gcc/testsuite/gcc.target/powerpc/bswap32.c