]> git.ipfire.org Git - thirdparty/gcc.git/commit
AArch64: Emit half-precision FCMP/FCMPE
authorSpencer Abson <spencer.abson@arm.com>
Fri, 31 Jan 2025 19:05:57 +0000 (19:05 +0000)
committerChristophe Lyon <christophe.lyon@arm.com>
Tue, 22 Apr 2025 15:08:04 +0000 (17:08 +0200)
commit8942b48e127512e791af6d257e48ab8e271d45b7
tree02cae486edf8ef8662f8fe73809193051b0801f6
parentfabbf99fc8ae26f0d87ff0c8619b4fc3bb4a5da2
AArch64: Emit half-precision FCMP/FCMPE

Enable a target with FEAT_FP16 to emit the half-precision variants
of FCMP/FCMPE.

gcc/ChangeLog:

* config/aarch64/aarch64.md: Update cbranch, cstore, fcmp
and fcmpe to use the GPF_F16 iterator for floating-point
modes.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/_Float16_cmp_1.c: New test.
* gcc.target/aarch64/_Float16_cmp_2.c: New (negative) test.
gcc/config/aarch64/aarch64.md
gcc/testsuite/gcc.target/aarch64/_Float16_cmp_1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/_Float16_cmp_2.c [new file with mode: 0644]