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 D82635
[MSP430] Declare comparison LibCalls as returning i16 instead of i32 atrosinenko on Jun 26 2020, 2:36 AM. Authored by
Details 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.
Diff Detail
Unit Tests Event TimelineComment Actions Just a note: using __mspabi_cmpf as a generic LibCall seems quite incorrect because __mspabi_cmpf does not accept NaNs according to MSP430 EABI. msp430-elf-gcc v9.2.0 just uses __nesf2 in the example above. I plan changing this later when doing more adjustments for libgcc/clang_rt. |
clang-format not found in user's PATH; not linting file.