Provide 64-bit support for i64 sextload<i8>.
authorJim Laskey <jlaskey@mac.com>
Fri, 15 Dec 2006 14:34:11 +0000 (14:34 +0000)
committerJim Laskey <jlaskey@mac.com>
Fri, 15 Dec 2006 14:34:11 +0000 (14:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32600 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstr64Bit.td

index 56d02cc146cfc5214d0f7aa7a8d8e5cf603c6e01..cdab11d7095b2a82524d238d468051dd919dc7f6 100644 (file)
@@ -491,6 +491,10 @@ def : Pat<(extloadi1 iaddr:$src),
           (LBZ8 iaddr:$src)>;
 def : Pat<(extloadi1 xaddr:$src),
           (LBZX8 xaddr:$src)>;
+def : Pat<(sextloadi8 iaddr:$src),
+          (EXTSB8 (LBZ8 iaddr:$src))>;
+def : Pat<(sextloadi8 xaddr:$src),
+          (EXTSB8 (LBZX8 xaddr:$src))>;
 def : Pat<(extloadi8 iaddr:$src),
           (LBZ8 iaddr:$src)>;
 def : Pat<(extloadi8 xaddr:$src),