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
+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
/* 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;
}
/* 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;
}
/* Conditional Move */
NOMIPS16 v2sf cond_move1 (v2sf a, v2sf b, long i)
{
- if (i > 0)
+ if (i != 0)
return a;
else
return b;
/* Conditional Move */
NOMIPS16 v2sf cond_move2 (v2sf a, v2sf b, int i)
{
- if (i > 0)
+ if (i != 0)
return a;
else
return b;