diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2022-09-10 17:31:07 -0700 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2022-09-12 05:01:05 -0700 |
commit | 71cd6a0430ca2a2c44e3cf4cc9f3c96d3aef1ab7 (patch) | |
tree | 748f105e56487b16d6df0e6173fe14bd460d7d62 /gcc/value-range.cc | |
parent | c092d894265f3db590585804c30c1ae3cb7b3773 (diff) | |
download | gcc-71cd6a0430ca2a2c44e3cf4cc9f3c96d3aef1ab7.zip gcc-71cd6a0430ca2a2c44e3cf4cc9f3c96d3aef1ab7.tar.gz gcc-71cd6a0430ca2a2c44e3cf4cc9f3c96d3aef1ab7.tar.bz2 |
xtensa: gcc: fix builtin_apply return value
xtensa may use up to 4 registers to return a value from a function, but
recognition of only one register in the xtensa_function_value_regno_p
and missing untyped_call pattern result in that only one register is
saved by the __builtin_apply and returned by the __builtin_apply_return.
gcc/
* config/xtensa/xtensa.cc (xtensa_function_value_regno_p):
Recognize all 4 return registers.
* config/xtensa/xtensa.h (GP_RETURN_REG_COUNT): New definition.
* config/xtensa/xtensa.md (untyped_call): New pattern.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions