diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2025-08-28 21:51:02 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2025-09-04 17:05:57 +0800 |
commit | 9df4edf0af74e867df8ae6422143dc5ed4eb1c10 (patch) | |
tree | 8de15c6185794781a31bcb43028cfc0a17c11477 /libjava | |
parent | b55277a4f8543f52c6d1664bb05e8eb90f46aaf3 (diff) | |
download | gcc-9df4edf0af74e867df8ae6422143dc5ed4eb1c10.zip gcc-9df4edf0af74e867df8ae6422143dc5ed4eb1c10.tar.gz gcc-9df4edf0af74e867df8ae6422143dc5ed4eb1c10.tar.bz2 |
RISC-V: Fix extension subset check in riscv_can_inline_p
The extension subset check logic in riscv_ext_is_subset was incorrectly
inverted, causing functions with more extensions to be incorrectly
rejected from being inlined into functions with fewer extensions.
This patch fixes the logic to correctly check if the callee's required
extensions are a subset of the caller's extensions. The corrected logic
now properly allows inlining when the caller has all the extensions that
the callee requires.
gcc/
* common/config/riscv/riscv-common.cc (riscv_ext_is_subset): Fix
inverted logic in extension subset check.
gcc/testsuite/
* gcc.target/riscv/can_inline_p_test-01.c: New test.
* gcc.target/riscv/can_inline_p_test-02.c: New test.
* gcc.target/riscv/can_inline_p_test-03.c: New test.
* gcc.target/riscv/can_inline_p_test-04.c: New test.
* gcc.target/riscv/riscv_vector.h: New header wrapper for vector
tests.
Diffstat (limited to 'libjava')
0 files changed, 0 insertions, 0 deletions