forked from OSchip/llvm-project
[AVR] Implement getCmpLibcallReturnType().
This fixes the avr-rust issue (#75) with floating-point comparisons generating broken code. By default, LLVM assumes these comparisons return 32-bit values, but ours are 8-bit. Patch By Thomas Backman. llvm-svn: 314070
This commit is contained in:
parent
2122119150
commit
f9e291a2f6
|
@ -75,6 +75,11 @@ public:
|
|||
MVT getScalarShiftAmountTy(const DataLayout &, EVT LHSTy) const override {
|
||||
return MVT::i8;
|
||||
}
|
||||
|
||||
MVT::SimpleValueType getCmpLibcallReturnType() const override {
|
||||
return MVT::i8;
|
||||
}
|
||||
|
||||
const char *getTargetNodeName(unsigned Opcode) const override;
|
||||
|
||||
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
|
||||
|
|
Loading…
Reference in New Issue