Commit 1588d48
Fix PR 106690: enable effective_target_bswap for RISCV targets with ZBB enabled by default
While looking for testcases to quickly test, I Noticed that
check_effective_target_bswap was not enabled for riscv when
ZBB is enabled. This patch checks if ZBB is enabled when
targeting RISCV* for bswap.
OK? Ran the testsuite for riscv32-linux-gnu both with and without ZBB enabled.
PR testsuite/106690
gcc/testsuite/ChangeLog:
* lib/target-supports.exp (check_effective_target_bswap):
Return true if riscv and ZBB ISA extension is enabled.
(cherry picked from commit dec5faa)
Signed-off-by: Stephanos Ioannidis <root@stephanos.io>1 parent 9dd0c72 commit 1588d48
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8629 | 8629 | | |
8630 | 8630 | | |
8631 | 8631 | | |
| 8632 | + | |
| 8633 | + | |
| 8634 | + | |
| 8635 | + | |
| 8636 | + | |
| 8637 | + | |
| 8638 | + | |
8632 | 8639 | | |
8633 | 8640 | | |
8634 | 8641 | | |
| |||
0 commit comments