From 00659b17817b3b5af4d9e9b93fed2a91fe27b019 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 Jun 2006 17:30:08 +0000 Subject: [PATCH] Add zextload from i32 -> i64, with this, perimeter works. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28926 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCInstr64Bit.td | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index f6777bc5784..0f6c69310cb 100644 --- a/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/lib/Target/PowerPC/PPCInstr64Bit.td @@ -228,6 +228,9 @@ def LWAX : XForm_1<31, 341, (ops G8RC:$rD, memrr:$src), def LDX : XForm_1<31, 21, (ops G8RC:$rD, memrr:$src), "ldx $rD, $src", LdStLD, [(set G8RC:$rD, (load xaddr:$src))]>, isPPC64; +def LWZ8 : DForm_1<32, (ops G8RC:$rD, memri:$src), + "lwz $rD, $src", LdStGeneral, + [(set G8RC:$rD, (zextload iaddr:$src, i32))]>, isPPC64; } let isStore = 1, noResults = 1, PPC970_Unit = 2 in { def STD : DSForm_2<62, 0, (ops G8RC:$rS, memrix:$dst), -- 2.34.1