aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-08-19 18:49:58 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-08-19 18:49:58 +0000
commit5e9867e71c8a099b470a6ac3b794b161c3035a63 (patch)
tree709cfa345ea7ff8bf7036fe801aaeff01dacc1bc /lib/Target/PowerPC
parentcc55ad5fe9ce5d971d9d88527e551ca84265c646 (diff)
downloadexternal_llvm-5e9867e71c8a099b470a6ac3b794b161c3035a63.zip
external_llvm-5e9867e71c8a099b470a6ac3b794b161c3035a63.tar.gz
external_llvm-5e9867e71c8a099b470a6ac3b794b161c3035a63.tar.bz2
Fix more remaining 32-bit vestiges of PowerPC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/PPC64ISelSimple.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Target/PowerPC/PPC64ISelSimple.cpp b/lib/Target/PowerPC/PPC64ISelSimple.cpp
index 18ea84c..72593a2 100644
--- a/lib/Target/PowerPC/PPC64ISelSimple.cpp
+++ b/lib/Target/PowerPC/PPC64ISelSimple.cpp
@@ -2520,10 +2520,8 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB,
BuildMI(*MBB, IP, PPC::RLWINM, 4, DestReg).addReg(SrcReg)
.addImm(0).addImm(clearBits).addImm(31);
break;
- case cLong:
- ++SrcReg;
- // Fall through
case cInt:
+ case cLong:
if (DestClass == cInt)
BuildMI(*MBB, IP, PPC::OR, 2, DestReg).addReg(SrcReg).addReg(SrcReg);
else
@@ -2599,10 +2597,8 @@ void ISel::emitCastOperation(MachineBasicBlock *MBB,
BuildMI(*MBB, IP, PPC::RLWINM, 4, DestReg).addReg(SrcReg).addImm(0)
.addImm(16).addImm(31);
break;
- case cLong:
- ++SrcReg;
- // Fall through
case cInt:
+ case cLong:
if (DestClass == cByte)
BuildMI(*MBB, IP, PPC::EXTSB, 1, DestReg).addReg(SrcReg);
else if (DestClass == cShort)