[PATCH] D139901: [BuildLibCalls][RISCV] Sign extend return value of bcmp on riscv64.

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 12 18:02:35 PST 2022


jrtc27 added a comment.

Hm, maybe not, GCC and Clang both seem to want to normalise the upper bits for dealing with an unsigned 32-bit return value being promoted to 64-bit, whether signed or unsigned... and the psABI document is really unclear on what on earth the convention is for return values in most respects. It's clear on parameters at least...


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139901/new/

https://reviews.llvm.org/D139901



More information about the llvm-commits mailing list