Commit 51fcc513 by Andrew Bennett Committed by Andrew Bennett

MIPS: Add the lo register to the clobber list in the madd-8.c and msub-8.c testcases.

The lo register is not listed in the clobber list in the inline asm statement
for the madd-8.c and msub-8.c testcases.  This means that when building for the
n64 ABI GCC is free to use the lo register instead of the stack when 
saving/restoring the clobbered registers.  Then then means that it decides to 
use the msub/madd instruction to perform the "x - y * z" operation rather than 
using mul; addu/subu which the test is looking for.

testsuite/
	* gcc.target/mips/madd-8.c: Add lo register to clobber list. 
	* gcc.target/mips/msub-8.c: Ditto.

From-SVN: r227299
parent 3726332a
2015-08-28 Andrew Bennett <andrew.bennett@imgtec.com>
* gcc.target/mips/madd-8.c: Add lo register to clobber list.
* gcc.target/mips/msub-8.c: Ditto
2015-08-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com> 2015-08-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
* lib/target-supports.exp (check-effective_target_vect_double): * lib/target-supports.exp (check-effective_target_vect_double):
......
...@@ -11,6 +11,6 @@ f2 (int x, int y, int z) ...@@ -11,6 +11,6 @@ f2 (int x, int y, int z)
asm volatile ("" ::: "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9", asm volatile ("" ::: "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9",
"$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17", "$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17",
"$18", "$19", "$20", "$21", "$22", "$23", "$24", "$25", "$18", "$19", "$20", "$21", "$22", "$23", "$24", "$25",
"$31"); "$31", "lo");
return x * y + z; return x * y + z;
} }
...@@ -11,6 +11,6 @@ f2 (int x, int y, int z) ...@@ -11,6 +11,6 @@ f2 (int x, int y, int z)
asm volatile ("" ::: "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9", asm volatile ("" ::: "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", "$9",
"$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17", "$10", "$11", "$12", "$13", "$14", "$15", "$16", "$17",
"$18", "$19", "$20", "$21", "$22", "$23", "$24", "$25", "$18", "$19", "$20", "$21", "$22", "$23", "$24", "$25",
"$31"); "$31", "lo");
return x - y * z; return x - y * z;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment