Added DLB/DSTB peepholes for HFmode.
Corrected mnemonics for HImode DSTB peephole. From-SVN: r10314
This commit is contained in:
parent
d5f2740875
commit
ebe9f72764
@ -1295,6 +1295,15 @@
|
|||||||
&& INTVAL(operands[2]) <= 255"
|
&& INTVAL(operands[2]) <= 255"
|
||||||
"dlb r%1,%2")
|
"dlb r%1,%2")
|
||||||
|
|
||||||
|
(define_peephole
|
||||||
|
[(set (match_operand:HF 0 "register_operand" "=r")
|
||||||
|
(mem:HF (plus:QI (match_operand:QI 1 "register_operand" "x")
|
||||||
|
(match_operand:QI 2 "immediate_operand" "L"))))
|
||||||
|
]
|
||||||
|
"REGNO(operands[0]) == 0 && REGNO(operands[1]) >= 12
|
||||||
|
&& INTVAL(operands[2]) <= 255"
|
||||||
|
"dlb r%1,%2")
|
||||||
|
|
||||||
;; Store Base
|
;; Store Base
|
||||||
(define_peephole
|
(define_peephole
|
||||||
[(set (mem:QI (plus:QI (match_operand:QI 0 "register_operand" "x")
|
[(set (mem:QI (plus:QI (match_operand:QI 0 "register_operand" "x")
|
||||||
@ -1313,7 +1322,16 @@
|
|||||||
]
|
]
|
||||||
"REGNO(operands[2]) == 0 && REGNO(operands[0]) >= 12
|
"REGNO(operands[2]) == 0 && REGNO(operands[0]) >= 12
|
||||||
&& INTVAL(operands[1]) <= 255"
|
&& INTVAL(operands[1]) <= 255"
|
||||||
"stb r%0,%1")
|
"dstb r%0,%1")
|
||||||
|
|
||||||
|
(define_peephole
|
||||||
|
[(set (mem:HF (plus:QI (match_operand:QI 0 "register_operand" "x")
|
||||||
|
(match_operand:QI 1 "immediate_operand" "L")))
|
||||||
|
(match_operand:HF 2 "register_operand" "r"))
|
||||||
|
]
|
||||||
|
"REGNO(operands[2]) == 0 && REGNO(operands[0]) >= 12
|
||||||
|
&& INTVAL(operands[1]) <= 255"
|
||||||
|
"dstb r%0,%1")
|
||||||
|
|
||||||
;; Eliminate the redundant load in a store/load sequence
|
;; Eliminate the redundant load in a store/load sequence
|
||||||
(define_peephole
|
(define_peephole
|
||||||
|
Loading…
Reference in New Issue
Block a user