diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-26 19:13:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-26 19:13:16 +0000 |
commit | b60c02e0050ab62f0c65a644cd353598d49aac99 (patch) | |
tree | ca6de9a1d184fa70511e44fe00fcacd3db2254b7 | |
parent | 7e97288b62a9d5e7e87d95afcb8c8176d9edeeb1 (diff) |
extload -> zextload
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33542 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb.td | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 677b6f4133..d7449fee2b 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -484,6 +484,11 @@ def : ThumbV5Pat<(ARMcall GPR:$dst), (tBLXr GPR:$dst)>; def : ThumbPat<(zextloadi1 t_addrmode_s1:$addr), (tLDRB t_addrmode_s1:$addr)>; +// extload -> zextload +def : ThumbPat<(extloadi1 t_addrmode_s1:$addr), (tLDRB t_addrmode_s1:$addr)>; +def : ThumbPat<(extloadi8 t_addrmode_s1:$addr), (tLDRB t_addrmode_s1:$addr)>; +def : ThumbPat<(extloadi16 t_addrmode_s2:$addr), (tLDRH t_addrmode_s2:$addr)>; + // truncstore i1 -> truncstore i8 def : ThumbPat<(truncstorei1 GPR:$src, t_addrmode_s1:$dst), (tSTRB GPR:$src, t_addrmode_s1:$dst)>; |