Commit c6596193 by Ulrich Weigand Committed by Ulrich Weigand

spu.md ("insv"): Fail if bitoffset+bitsize lies outside the target mode.

	* config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
	lies outside the target mode.

From-SVN: r209028
parent 84c2f4b0
2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
lies outside the target mode.
2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com> 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/60735 PR target/60735
......
...@@ -2851,7 +2851,13 @@ ...@@ -2851,7 +2851,13 @@
(match_operand:SI 2 "const_int_operand" "")) (match_operand:SI 2 "const_int_operand" ""))
(match_operand 3 "nonmemory_operand" ""))] (match_operand 3 "nonmemory_operand" ""))]
"" ""
{ spu_expand_insv(operands); DONE; }) {
if (INTVAL (operands[1]) + INTVAL (operands[2])
> GET_MODE_BITSIZE (GET_MODE (operands[0])))
FAIL;
spu_expand_insv(operands);
DONE;
})
;; Simplify a number of patterns that get generated by extv, extzv, ;; Simplify a number of patterns that get generated by extv, extzv,
;; insv, and loads. ;; insv, and loads.
......
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