[PATCH v1 1/2] aarch64: Fix condition accepted by mov<GPF>cc
via Sourceware Forge
forge-bot@forge-test.rdfm.org
Tue Sep 30 12:05:00 GMT 2025
From: Karl Meakin <karl.meakin@arm.com>
Apply the same fix from bc11cbff9e648fdda2798bfa2d7151d5cd164b87
("aarch64: Fix condition accepted by mov<ALLI>cc") to `MOV<GPF>cc`.
Fixes ICEs when compiling code such as `cmpbr-4.c` with `+cmpbr`.
gcc/ChangeLog:
* config/aarch64/aarch64.md(mov<GPF>cc): Accept MODE_CC
conditions directly; reject QI/HImode conditions.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/cmpbr-4.c: New test.
---
gcc/config/aarch64/aarch64.md | 16 +++++++++++-----
gcc/testsuite/gcc.target/aarch64/cmpbr-4.c | 12 ++++++++++++
2 files changed, 23 insertions(+), 5 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/aarch64/cmpbr-4.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1-0001-aarch64-Fix-condition-accepted-by-mov-GPF-cc.patch
Type: text/x-patch
Size: 1523 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/test-list/attachments/20250930/f39b17ca/attachment.bin>
More information about the Test-list
mailing list