extload -> zextload
authorEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jan 2007 19:13:16 +0000 (19:13 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 26 Jan 2007 19:13:16 +0000 (19:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33542 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index 677b6f4133e12346a8db6740ff90cd76bc8c24fe..d7449fee2b2baaa3f9b309043080c3714819b438 100644 (file)
@@ -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)>;