diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-11-04 21:31:18 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-11-04 21:31:18 +0000 |
commit | 3d90dbee695e723f422dafca3fc75f193268ab9e (patch) | |
tree | 9c592ffc8c85e675ea6d1658773e1a7b5811f49c /lib/Target/PowerPC/PPCInstr64Bit.td | |
parent | 0368e500eb7f5f03313e1a7af5b8fa48465c0560 (diff) | |
download | external_llvm-3d90dbee695e723f422dafca3fc75f193268ab9e.zip external_llvm-3d90dbee695e723f422dafca3fc75f193268ab9e.tar.gz external_llvm-3d90dbee695e723f422dafca3fc75f193268ab9e.tar.bz2 |
Add PowerPC codegen for indirect branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstr64Bit.td')
-rw-r--r-- | lib/Target/PowerPC/PPCInstr64Bit.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCInstr64Bit.td b/lib/Target/PowerPC/PPCInstr64Bit.td index d1e1bd5..ebdc58b 100644 --- a/lib/Target/PowerPC/PPCInstr64Bit.td +++ b/lib/Target/PowerPC/PPCInstr64Bit.td @@ -731,9 +731,13 @@ def : Pat<(PPChi tconstpool:$in , 0), (LIS8 tconstpool:$in)>; def : Pat<(PPClo tconstpool:$in , 0), (LI8 tconstpool:$in)>; def : Pat<(PPChi tjumptable:$in , 0), (LIS8 tjumptable:$in)>; def : Pat<(PPClo tjumptable:$in , 0), (LI8 tjumptable:$in)>; +def : Pat<(PPChi tblockaddress:$in, 0), (LIS8 tblockaddress:$in)>; +def : Pat<(PPClo tblockaddress:$in, 0), (LI8 tblockaddress:$in)>; def : Pat<(add G8RC:$in, (PPChi tglobaladdr:$g, 0)), (ADDIS8 G8RC:$in, tglobaladdr:$g)>; def : Pat<(add G8RC:$in, (PPChi tconstpool:$g, 0)), (ADDIS8 G8RC:$in, tconstpool:$g)>; def : Pat<(add G8RC:$in, (PPChi tjumptable:$g, 0)), (ADDIS8 G8RC:$in, tjumptable:$g)>; +def : Pat<(add G8RC:$in, (PPChi tblockaddress:$g, 0)), + (ADDIS8 G8RC:$in, tblockaddress:$g)>; |