diff options
author | Matthew Fortune <matthew.fortune@imgtec.com> | 2017-02-24 22:34:25 +0000 |
---|---|---|
committer | Matthew Fortune <mpf@gcc.gnu.org> | 2017-02-24 22:34:25 +0000 |
commit | 4bc2b7860f5a381d74a9bc36c04c5e0ddbf2374d (patch) | |
tree | c7b8b197421df0f872247562c7a1783ce7390371 /gcc | |
parent | 015122d8c438b83cb069a6f42fae066cfb4749da (diff) | |
download | gcc-4bc2b7860f5a381d74a9bc36c04c5e0ddbf2374d.zip gcc-4bc2b7860f5a381d74a9bc36c04c5e0ddbf2374d.tar.gz gcc-4bc2b7860f5a381d74a9bc36c04c5e0ddbf2374d.tar.bz2 |
Update paired single tests to cope with ABI fixes for o32/o64
gcc/testsuite/
* gcc.target/mips/mips-ps-type-2.c (move): Force generation
of mov.ps.
* gcc.target/mips/mips-ps-type.c (move): Likewise.
(cond_move1): Simplify condition to force generation of
mov[nz].ps.
(cond_move2): Likewise.
From-SVN: r245722
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mips-ps-type-2.c | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/mips-ps-type.c | 9 |
3 files changed, 21 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ecaa96..ce7a3d4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com> + + * gcc.target/mips/mips-ps-type-2.c (move): Force generation + of mov.ps. + * gcc.target/mips/mips-ps-type.c (move): Likewise. + (cond_move1): Simplify condition to force generation of + mov[nz].ps. + (cond_move2): Likewise. + 2017-02-24 Jakub Jelinek <jakub@redhat.com> PR c++/79588 diff --git a/gcc/testsuite/gcc.target/mips/mips-ps-type-2.c b/gcc/testsuite/gcc.target/mips/mips-ps-type-2.c index fecc35b..ed5d6ee 100644 --- a/gcc/testsuite/gcc.target/mips/mips-ps-type-2.c +++ b/gcc/testsuite/gcc.target/mips/mips-ps-type-2.c @@ -32,6 +32,11 @@ NOMIPS16 v2sf init (float a, float b) /* Move between registers */ NOMIPS16 v2sf move (v2sf a) { + register v2sf b __asm__("$f0") = a; + register v2sf c __asm__("$f2"); + __asm__ __volatile__ ("" : "+f" (b)); + c = b; + __asm__ __volatile__ ("" : : "f" (c)); return a; } diff --git a/gcc/testsuite/gcc.target/mips/mips-ps-type.c b/gcc/testsuite/gcc.target/mips/mips-ps-type.c index d74d4b5..731649c 100644 --- a/gcc/testsuite/gcc.target/mips/mips-ps-type.c +++ b/gcc/testsuite/gcc.target/mips/mips-ps-type.c @@ -30,6 +30,11 @@ NOMIPS16 v2sf init (float a, float b) /* Move between registers */ NOMIPS16 v2sf move (v2sf a) { + register v2sf b __asm__("$f0") = a; + register v2sf c __asm__("$f2"); + __asm__ __volatile__ ("" : "+f" (b)); + c = b; + __asm__ __volatile__ ("" : : "f" (c)); return a; } @@ -96,7 +101,7 @@ NOMIPS16 v2sf nmsub (v2sf a, v2sf b, v2sf c) /* Conditional Move */ NOMIPS16 v2sf cond_move1 (v2sf a, v2sf b, long i) { - if (i > 0) + if (i != 0) return a; else return b; @@ -105,7 +110,7 @@ NOMIPS16 v2sf cond_move1 (v2sf a, v2sf b, long i) /* Conditional Move */ NOMIPS16 v2sf cond_move2 (v2sf a, v2sf b, int i) { - if (i > 0) + if (i != 0) return a; else return b; |