Commit 590f5d51 by James Greenhalgh Committed by James Greenhalgh

[Patch Vax] zero/sign extend patterns need to be SUBREG aware

gcc/

	* config/vax/vax.md: Adjust sign/zero extend patterns to
	handle SUBREGs in operands[1].

gcc/testsuite/

	* gcc.target/vax/bswapdi-1.c: New.

From-SVN: r224672
parent 590d172b
2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* config/vax/vax.md: Adjust sign/zero extend patterns to
handle SUBREGs in operands[1].
2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/i386/i386.c (ix86_function_versions): Use std::swap instead * config/i386/i386.c (ix86_function_versions): Use std::swap instead
......
...@@ -780,7 +780,7 @@ ...@@ -780,7 +780,7 @@
(match_operand:SI 3 "general_operand" "g"))] (match_operand:SI 3 "general_operand" "g"))]
"(INTVAL (operands[1]) == 8 || INTVAL (operands[1]) == 16) "(INTVAL (operands[1]) == 8 || INTVAL (operands[1]) == 16)
&& INTVAL (operands[2]) % INTVAL (operands[1]) == 0 && INTVAL (operands[2]) % INTVAL (operands[1]) == 0
&& (REG_P (operands[0]) && (!MEM_P (operands[0])
|| ! mode_dependent_address_p (XEXP (operands[0], 0), || ! mode_dependent_address_p (XEXP (operands[0], 0),
MEM_ADDR_SPACE (operands[0])))" MEM_ADDR_SPACE (operands[0])))"
"* "*
...@@ -809,7 +809,7 @@ ...@@ -809,7 +809,7 @@
(match_operand:SI 3 "const_int_operand" "n")))] (match_operand:SI 3 "const_int_operand" "n")))]
"(INTVAL (operands[2]) == 8 || INTVAL (operands[2]) == 16) "(INTVAL (operands[2]) == 8 || INTVAL (operands[2]) == 16)
&& INTVAL (operands[3]) % INTVAL (operands[2]) == 0 && INTVAL (operands[3]) % INTVAL (operands[2]) == 0
&& (REG_P (operands[1]) && (!MEM_P (operands[1])
|| ! mode_dependent_address_p (XEXP (operands[1], 0), || ! mode_dependent_address_p (XEXP (operands[1], 0),
MEM_ADDR_SPACE (operands[1])))" MEM_ADDR_SPACE (operands[1])))"
"* "*
...@@ -837,7 +837,7 @@ ...@@ -837,7 +837,7 @@
(match_operand:SI 3 "const_int_operand" "n")))] (match_operand:SI 3 "const_int_operand" "n")))]
"(INTVAL (operands[2]) == 8 || INTVAL (operands[2]) == 16) "(INTVAL (operands[2]) == 8 || INTVAL (operands[2]) == 16)
&& INTVAL (operands[3]) % INTVAL (operands[2]) == 0 && INTVAL (operands[3]) % INTVAL (operands[2]) == 0
&& (REG_P (operands[1]) && (!MEM_P (operands[1])
|| ! mode_dependent_address_p (XEXP (operands[1], 0), || ! mode_dependent_address_p (XEXP (operands[1], 0),
MEM_ADDR_SPACE (operands[1])))" MEM_ADDR_SPACE (operands[1])))"
"* "*
......
2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.target/vax/bswapdi-1.c: New.
2015-06-19 Christophe Lyon <christophe.lyon@linaro.org> 2015-06-19 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/aarch64/advsimd-intrinsics/vtst.c: New file. * gcc.target/aarch64/advsimd-intrinsics/vtst.c: New file.
......
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