mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Rewrite LHAU8 pattern to use standard memory operand.
As opposed to to pre-increment store patterns, the pre-increment load patterns were already using standard memory operands, with the sole exception of LHAU8. As there's no real reason why LHAU8 should be different here, this patch simply rewrites the pattern to also use a memri operand, just like all the other patterns. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5882e3d828
commit
8353d1e0e5
@ -579,10 +579,10 @@ def LWAX : XForm_1<31, 341, (outs G8RC:$rD), (ins memrr:$src),
|
|||||||
|
|
||||||
// Update forms.
|
// Update forms.
|
||||||
let mayLoad = 1 in
|
let mayLoad = 1 in
|
||||||
def LHAU8 : DForm_1a<43, (outs G8RC:$rD, ptr_rc_nor0:$ea_result), (ins symbolLo:$disp,
|
def LHAU8 : DForm_1<43, (outs G8RC:$rD, ptr_rc_nor0:$ea_result),
|
||||||
ptr_rc_nor0:$rA),
|
(ins memri:$addr),
|
||||||
"lhau $rD, $disp($rA)", LdStLHAU,
|
"lhau $rD, $addr", LdStLHAU,
|
||||||
[]>, RegConstraint<"$rA = $ea_result">,
|
[]>, RegConstraint<"$addr.reg = $ea_result">,
|
||||||
NoEncode<"$ea_result">;
|
NoEncode<"$ea_result">;
|
||||||
// NO LWAU!
|
// NO LWAU!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user