HomePhabricator

[RISCV] Use sign extend for i32 arguments and returns in makeLibCall on RV64.

Authored by craig.topper on Jan 25 2021, 9:16 AM.

Description

[RISCV] Use sign extend for i32 arguments and returns in makeLibCall on RV64.

As far as I know 32 bits arguments and returns on RV64 are always
sign extended to i64. So I think we should be taking this into
account around libcalls.

Reviewed By: luismarques

Differential Revision: https://reviews.llvm.org/D95285

Details