[PATCH v2 1/5] aarch64: Fix condition accepted by mov<GPF>cc

Karl Meakin via Sourceware Forge forge-bot@forge-test.rdfm.org
Fri Oct 17 15:18:38 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              | 48 +++++++++++++++-------
 gcc/testsuite/gcc.target/aarch64/cmpbr-4.c | 12 ++++++
 2 files changed, 45 insertions(+), 15 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/aarch64/cmpbr-4.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-aarch64-Fix-condition-accepted-by-mov-GPF-cc.patch
Type: text/x-patch
Size: 3153 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/test-list/attachments/20251017/2e522670/attachment.bin>


More information about the Test-list mailing list