[MSP430] Declare comparison LibCalls as returning i16 instead of i32
authorAnatoly Trosinenko <atrosinenko@accesssoftek.com>
Tue, 30 Jun 2020 08:04:17 +0000 (11:04 +0300)
committerAnton Korobeynikov <anton@korobeynikov.info>
Tue, 30 Jun 2020 08:04:22 +0000 (11:04 +0300)
commit19e75717eff2c22e6643addcc44caa8dc2f0125f
tree1b97e3428a1152d547a0be4731a4ecfb72a81c00
parent4f5133a4dcd0b023160879740d32bbcca198664f
[MSP430] Declare comparison LibCalls as returning i16 instead of i32

For TI's distribution of msp430-gcc
```
msp430-elf-gcc -S -o- -Os -x c - <<< "int f(float a, float b) { return a != b; }"
```
does not mention `R13` at all. `__libgcc_cmp_return__` machine mode is 2 byte on MSP430, as well.

Differential Revision: https://reviews.llvm.org/D82635
llvm/lib/Target/MSP430/MSP430ISelLowering.h
llvm/test/CodeGen/MSP430/cmp-return-type.ll [new file with mode: 0644]