Skip to content

Commit 51d9915

Browse files
committed
Merging r314070:
------------------------------------------------------------------------ r314070 | dylanmckay | 2017-09-24 14:07:26 +1300 (Sun, 24 Sep 2017) | 6 lines [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: 314357
1 parent 34c887f commit 51d9915

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/AVR/AVRISelLowering.h

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ class AVRTargetLowering : public TargetLowering {
7575
MVT getScalarShiftAmountTy(const DataLayout &, EVT LHSTy) const override {
7676
return MVT::i8;
7777
}
78+
79+
MVT::SimpleValueType getCmpLibcallReturnType() const override {
80+
return MVT::i8;
81+
}
82+
7883
const char *getTargetNodeName(unsigned Opcode) const override;
7984

8085
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;

0 commit comments

Comments
 (0)