From 36d826dca2f771043911eb177e71c8b7a7486d54 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. llvm-svn: 32600 --- llvm/lib/Target/PowerPC/PPCInstr64Bit.td | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td b/llvm/lib/Target/PowerPC/PPCInstr64Bit.td index 56d02cc146cf..cdab11d7095b 100644 --- a/llvm/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/llvm/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),