diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2019-08-05 03:32:38 +0000 |
---|---|---|
committer | Kito Cheng <kito@gcc.gnu.org> | 2019-08-05 03:32:38 +0000 |
commit | 860edc46624a23e678934a907d8fccb2fad0dcb5 (patch) | |
tree | e7ddfc15b2e2736505adf431856280ffb2f2c38d /gcc/tree-vectorizer.c | |
parent | 89c78fb2e1d862f4efbc22583eeb852bf173a0ad (diff) | |
download | gcc-860edc46624a23e678934a907d8fccb2fad0dcb5.zip gcc-860edc46624a23e678934a907d8fccb2fad0dcb5.tar.gz gcc-860edc46624a23e678934a907d8fccb2fad0dcb5.tar.bz2 |
RISC-V: Promote type correctly for libcalls
- argument and return value for libcall won't promote at
default_promote_function_mode_always_promote, however we expect it
should sign-extend as normal function.
- Witout this patch, this test case will fail at -march=rv64i -mabi=lp64.
- The implementation of riscv_promote_function_mode is borrowed from MIPS.
gcc/ChangeLog
* config/riscv/riscv.c (riscv_promote_function_mode): New.
(TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
gcc/testsuite/ChangeLog
* gcc.target/riscv/promote-type-for-libcall.c: New.
From-SVN: r274107
Diffstat (limited to 'gcc/tree-vectorizer.c')
0 files changed, 0 insertions, 0 deletions