mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Sparc doesn't have sext_inreg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53ec2035eb
commit
9a60ff654a
@ -60,6 +60,11 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
|
||||
addRegisterClass(MVT::i32, V8::IntRegsRegisterClass);
|
||||
addRegisterClass(MVT::f32, V8::FPRegsRegisterClass);
|
||||
addRegisterClass(MVT::f64, V8::DFPRegsRegisterClass);
|
||||
|
||||
// Sparc doesn't have sext_inreg, replace them with shl/sra
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16 , Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8 , Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1 , Expand);
|
||||
|
||||
computeRegisterProperties();
|
||||
}
|
||||
|
@ -60,6 +60,11 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
|
||||
addRegisterClass(MVT::i32, V8::IntRegsRegisterClass);
|
||||
addRegisterClass(MVT::f32, V8::FPRegsRegisterClass);
|
||||
addRegisterClass(MVT::f64, V8::DFPRegsRegisterClass);
|
||||
|
||||
// Sparc doesn't have sext_inreg, replace them with shl/sra
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16 , Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8 , Expand);
|
||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1 , Expand);
|
||||
|
||||
computeRegisterProperties();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user