diff options
author | Chris Lattner <sabre@nondot.org> | 2005-12-18 23:18:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-12-18 23:18:37 +0000 |
commit | b04c5c8eb2f0574c473036f1e66086a771663300 (patch) | |
tree | da20cb0cd6521f2dcb6285dc5fd67af115d113c7 /lib/Target/Sparc | |
parent | 20ad53ffd770a4012dcb3be7ee1a393d30337c4e (diff) |
add support for integer extloads
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24840 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.td | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td index bdcb1a2457..7ace4e9f2b 100644 --- a/lib/Target/Sparc/SparcInstrInfo.td +++ b/lib/Target/Sparc/SparcInstrInfo.td @@ -713,3 +713,12 @@ def : Pat<(V8lo tconstpool:$in), (ORri G0, tconstpool:$in)>; // Return of a value, which has an input flag. def : Pat<(retflag ICC/*HACK*/), (RETL)>; + +// Map integer extload's to zextloads. +// Handling 1 bit extload +def : Pat<(i32 (extload ADDRrr:$src, i1)), (LDUBrr ADDRrr:$src)>; +def : Pat<(i32 (extload ADDRri:$src, i1)), (LDUBri ADDRri:$src)>; +def : Pat<(i32 (extload ADDRrr:$src, i8)), (LDUBrr ADDRrr:$src)>; +def : Pat<(i32 (extload ADDRri:$src, i8)), (LDUBri ADDRri:$src)>; +def : Pat<(i32 (extload ADDRrr:$src, i16)), (LDUHrr ADDRrr:$src)>; +def : Pat<(i32 (extload ADDRri:$src, i16)), (LDUHri ADDRri:$src)>; |