summaryrefslogtreecommitdiff
path: root/lib/Target/Mips
diff options
context:
space:
mode:
authorReed Kotler <rkotler@mips.com>2012-10-29 19:39:04 +0000
committerReed Kotler <rkotler@mips.com>2012-10-29 19:39:04 +0000
commit576b1dbbef3c85df7245ebd9c1064c2083a4e4a1 (patch)
tree46ef69495d8975f7902c6c66aba8218b8dd6eca2 /lib/Target/Mips
parente669c930a61dd56891df2f9822966ecb173c8072 (diff)
downloadllvm-576b1dbbef3c85df7245ebd9c1064c2083a4e4a1.tar.gz
llvm-576b1dbbef3c85df7245ebd9c1064c2083a4e4a1.tar.bz2
llvm-576b1dbbef3c85df7245ebd9c1064c2083a4e4a1.tar.xz
Implement patterns for extloadi8 and extloadi16
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r--lib/Target/Mips/Mips16InstrInfo.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/Mips/Mips16InstrInfo.td b/lib/Target/Mips/Mips16InstrInfo.td
index d4d61550b4..2740a1d83a 100644
--- a/lib/Target/Mips/Mips16InstrInfo.td
+++ b/lib/Target/Mips/Mips16InstrInfo.td
@@ -1508,3 +1508,7 @@ class Wrapper16Pat<SDNode node, Instruction ADDiuOp, RegisterClass RC>:
def : Wrapper16Pat<tglobaladdr, AddiuRxRxImmX16, CPU16Regs>;
def : Wrapper16Pat<tglobaltlsaddr, AddiuRxRxImmX16, CPU16Regs>;
+def : Mips16Pat<(i32 (extloadi8 addr16:$src)),
+ (LbuRxRyOffMemX16 addr16:$src)>;
+def : Mips16Pat<(i32 (extloadi16 addr16:$src)),
+ (LhuRxRyOffMemX16 addr16:$src)>; \ No newline at end of file