[RS6000] Don't be too clever with dg-do run and dg-do compile
authorAlan Modra <amodra@gmail.com>
Wed, 28 Oct 2020 08:33:04 +0000 (19:03 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Oct 2020 22:43:17 +0000 (09:13 +1030)
commit4166ebedf8b8a302b86132fdf846fac204c83368
tree6d071db438536da208165dd0bc3604bbc3c7feb4
parentbbb36257448bd69bb58ecab0f4811a10d4b84d67
[RS6000] Don't be too clever with dg-do run and dg-do compile

Otherwise some versions of dejagnu go ahead and run the vsx tests
below when they should not.  To best cope with older dejagnu, put
"run" before "compile", the idea being that if the second dg-do always
wins then that won't cause fails.

The altivec tests also need -save-temps for the scan-assembler test to
occur when vms_hw.

* gcc.target/powerpc/vsx-load-element-extend-char.c: Put "dg-do run"
before "dg-do compile", and make them mutually exclusive.
* gcc.target/powerpc/vsx-load-element-extend-int.c: Likewise.
* gcc.target/powerpc/vsx-load-element-extend-longlong.c: Likewise.
* gcc.target/powerpc/vsx-load-element-extend-short.c: Likewise.
* gcc.target/powerpc/vsx-store-element-truncate-char.c: Likewise.
* gcc.target/powerpc/vsx-store-element-truncate-int.c: Likewise.
* gcc.target/powerpc/vsx-store-element-truncate-longlong.c: Likewise.
* gcc.target/powerpc/vsx-store-element-truncate-short.c: Likewise.
* gcc.target/powerpc/altivec-consts.c: Likewise, add -save-temps.
* gcc.target/powerpc/le-altivec-consts.c: Likewise.
gcc/testsuite/gcc.target/powerpc/altivec-consts.c
gcc/testsuite/gcc.target/powerpc/le-altivec-consts.c
gcc/testsuite/gcc.target/powerpc/vsx-load-element-extend-char.c
gcc/testsuite/gcc.target/powerpc/vsx-load-element-extend-int.c
gcc/testsuite/gcc.target/powerpc/vsx-load-element-extend-longlong.c
gcc/testsuite/gcc.target/powerpc/vsx-load-element-extend-short.c
gcc/testsuite/gcc.target/powerpc/vsx-store-element-truncate-char.c
gcc/testsuite/gcc.target/powerpc/vsx-store-element-truncate-int.c
gcc/testsuite/gcc.target/powerpc/vsx-store-element-truncate-longlong.c
gcc/testsuite/gcc.target/powerpc/vsx-store-element-truncate-short.c