mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +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
@ -61,6 +61,11 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,11 @@ SparcV8TargetLowering::SparcV8TargetLowering(TargetMachine &TM)
|
||||
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…
Reference in New Issue
Block a user