From c4a81dc9357987bd0f4a4dc1593e8f38d6567fbd Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 15 Dec 2006 14:34:11 +0000 Subject: [PATCH] Provide 64-bit support for i64 sextload. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32600 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstr64Bit.td | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index 56d02cc146c..cdab11d7095 100644 --- a/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/lib/Target/PowerPC/PPCInstr64Bit.td @@ -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), -- 2.34.1