summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-09 23:20:37 +0000
committerChris Lattner <sabre@nondot.org>2006-01-09 23:20:37 +0000
commitbfb2de9030d83d4b3176e3f1eb84efe79588ef62 (patch)
tree93bbddce8ab9877490fdac64097c649079d15e85 /llvm/lib/Target
parent7c4486215fba0794d9fc044859f2e8a3f1dee6f7 (diff)
downloadbcm5719-llvm-bfb2de9030d83d4b3176e3f1eb84efe79588ef62.tar.gz
bcm5719-llvm-bfb2de9030d83d4b3176e3f1eb84efe79588ef62.zip
add ret void support back
llvm-svn: 25164
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 1e7166c9c0b..155c14d47d6 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -987,6 +987,10 @@ def : Pat<(or (shl GPRC:$rS, GPRC:$rB),
(srl GPRC:$rS, (sub 32, GPRC:$rB))),
(RLWNM GPRC:$rS, GPRC:$rB, 0, 31)>;
+// Return void support.
+def : Pat<(ret), (BLR)>;
+
+// 64-bit support
def : Pat<(i64 (zext GPRC:$in)),
(RLDICL (OR4To8 GPRC:$in, GPRC:$in), 0, 32)>;
def : Pat<(i64 (anyext GPRC:$in)),
OpenPOWER on IntegriCloud