diff options
author | Asher Mancinelli <ashermancinelli@gmail.com> | 2025-04-25 06:57:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-25 06:57:56 -0700 |
commit | 41f1663f118285e63eaf28c5156af3caa972644f (patch) | |
tree | 79491bc308cc63c12b1254c0facc194c20de8205 /clang/lib/Frontend/ASTMerge.cpp | |
parent | ade502a8c46b8393e022b4eabcdd445af91a451c (diff) | |
download | llvm-41f1663f118285e63eaf28c5156af3caa972644f.zip llvm-41f1663f118285e63eaf28c5156af3caa972644f.tar.gz llvm-41f1663f118285e63eaf28c5156af3caa972644f.tar.bz2 |
[flang] Use correct int extension flags for C-ABI calls on aarch64 (#137105)
The AArch64 procedure call standard does not mandate that the callee
extends the return value. Clang does not add signext to functions
returning i8 or i16 on linux aarch64, but flang does.
This means that runtime routines returning i8's will have signext on the
callsite/declaration, but not on the implementation, and the call site
will assume the return value has already been sign extended when it has
not. This showed up in a test case calling MINVAL on an array of
INTEGER*1.
Adjust our integer extension flags to match clang and aarch64pcs on
linux. The behavior on Darwin should be preserved. This is listed on the
apple developer guide as a divergence from aarch64pcs.
Diffstat (limited to 'clang/lib/Frontend/ASTMerge.cpp')
0 files changed, 0 insertions, 0 deletions