c4x.md (set_lo_sum+2): New splitter to load large const_ints.

* config/c4x/c4x.md (set_lo_sum+2): New splitter to load large
	const_ints.

From-SVN: r26940
This commit is contained in:
Michael Hayes 1999-05-14 19:19:30 +00:00 committed by Michael Hayes
parent 152d599762
commit c08733d022
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat May 15 14:12:38 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.md (set_lo_sum+2): New splitter to load large
const_ints.
Sat May 15 14:09:08 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
* config/c4x/c4x.md (decrement_and_branch_on_count): Disabled.

View File

@ -1127,6 +1127,20 @@
(set (match_dup 0) (lo_sum:QI (match_dup 0) (match_dup 1)))]
"")
(define_split
[(set (match_operand:QI 0 "std_reg_operand" "")
(match_operand:QI 1 "const_int_operand" ""))]
"! TARGET_C3X
&& (INTVAL (operands[1]) & ~0xffff) != 0
&& (INTVAL (operands[1]) & 0xffff) != 0"
[(set (match_dup 0) (match_dup 2))
(set (match_dup 0) (ior:QI (match_dup 0) (match_dup 3)))]
"
{
operands[2] = gen_rtx (CONST_INT, VOIDmode, INTVAL (operands[1]) & ~0xffff);
operands[3] = gen_rtx (CONST_INT, VOIDmode, INTVAL (operands[1]) & 0xffff);
}")
; This pattern is required to handle the case where a register that clobbers
; CC has been selected to load a symbolic address. We force the address
; into memory and then generate LDP and LDIU insns.