Committed on behalf of Matthew Wahab
authorMatthew Wahab <matthew.wahab@arm.com>
Tue, 16 May 2017 09:23:42 +0000 (09:23 +0000)
committerTamar Christina <tnfchris@gcc.gnu.org>
Tue, 16 May 2017 09:23:42 +0000 (09:23 +0000)
commit6da37857031422ddcc84635905257e491210e665
tree9ee517f11a3662d067306ca25b52c7f0ec3114b6
parentd8c9bc362740560b8d8fbfd4d464d2cbde7591f2
Committed on behalf of Matthew Wahab

gcc/
2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>

* config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
operations in fast-math mode.
(vaddq_f16): Likewise.
(vmul_f16): Likewise.
(vmulq_f16): Likewise.
(vsub_f16): Likewise.
(vsubq_f16): Likewise.
* config/arm/neon.md (add<mode>3): New.
(sub<mode>3): New.
(fma:<VH:mode>3): New.  Also remove outdated comment.
(mul<mode>3): New.

testsuite/
2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>

* gcc.target/arm/armv8_2-fp16-arith-1.c: Expand comment.  Update
expected output of vadd, vsub and vmul instructions.
* gcc.target/arm/armv8_2-fp16-arith-2.c: New.
* gcc.target/arm/armv8_2-fp16-neon-2.c: New.
* gcc.target/arm/armv8_2-fp16-neon-3.c: New.

From-SVN: r248090
gcc/ChangeLog
gcc/config/arm/arm_neon.h
gcc/config/arm/neon.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/armv8_2-fp16-arith-1.c
gcc/testsuite/gcc.target/arm/armv8_2-fp16-arith-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/armv8_2-fp16-neon-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/arm/armv8_2-fp16-neon-3.c [new file with mode: 0644]