summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-06-06 09:52:23 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-06-06 09:52:23 +0000
commit2969ec52661e8b3a878650b3ef93854dc4c46da2 (patch)
treea96f347eb3cf8eb600876ea7c9789894792759f5 /llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h
parentf77c991d3a80e273f2df59a171857fc8646593d4 (diff)
downloadbcm5719-llvm-2969ec52661e8b3a878650b3ef93854dc4c46da2.tar.gz
bcm5719-llvm-2969ec52661e8b3a878650b3ef93854dc4c46da2.zip
* Changed Bcc instructions to behave like BPcc instructions
* BPA and BPN do not take a %cc register as a parameter * SLL/SRL/SRA{r,i}5 are there for a reason - they are ONLY 32-bit instructions * Likewise, SLL/SRL/SRAX{r,i}6 are only 64-bit * Added WRCCR{r,i} opcodes llvm-svn: 6655
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h b/llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h
index 7f9bdc8e8b2..1be1de10448 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h
+++ b/llvm/lib/Target/Sparc/SparcInstrSelectionSupport.h
@@ -110,9 +110,9 @@ convertOpcodeFromRegToImm(unsigned Opcode) {
case V9::XNORccr: return V9::XNORcci;
/* shift */
- case V9::SLLr6: return V9::SLLi6;
- case V9::SRLr6: return V9::SRLi6;
- case V9::SRAr6: return V9::SRAi6;
+ case V9::SLLr5: return V9::SLLi5;
+ case V9::SRLr5: return V9::SRLi5;
+ case V9::SRAr5: return V9::SRAi5;
case V9::SLLXr6: return V9::SLLXi6;
case V9::SRLXr6: return V9::SRLXi6;
case V9::SRAXr6: return V9::SRAXi6;
OpenPOWER on IntegriCloud