[arm] Update FP16 tests
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 26 Sep 2019 10:43:09 +0000 (10:43 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 26 Sep 2019 10:43:09 +0000 (10:43 +0000)
My recent assemble_real patch (r275873) meant that we now output
negative FP16 constants in the same way as we'd output an integer
subreg of them.  This patch updates gcc.target/arm/fp16-* accordingly.

2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>

gcc/testsuite/
* gcc.target/arm/fp16-compile-alt-3.c: Expect (__fp16) -2.0
to be written as a negative short rather than a positive one.
* gcc.target/arm/fp16-compile-ieee-3.c: Likewise.

From-SVN: r276145

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c
gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c

index 1f99dbd..0274587 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * gcc.target/arm/fp16-compile-alt-3.c: Expect (__fp16) -2.0
+       to be written as a negative short rather than a positive one.
+       * gcc.target/arm/fp16-compile-ieee-3.c: Likewise.
+
 2019-09-26  Martin Liska  <mliska@suse.cz>
 
        PR tree-optimization/91885
index e786a51..7221766 100644 (file)
@@ -7,4 +7,4 @@
 __fp16 xx = -2.0;
 
 /* { dg-final { scan-assembler "\t.size\txx, 2" } } */
-/* { dg-final { scan-assembler "\t.short\t49152" } } */
+/* { dg-final { scan-assembler "\t.short\t-16384" } } */
index 90edd01..1f1e074 100644 (file)
@@ -6,4 +6,4 @@
 __fp16 xx = -2.0;
 
 /* { dg-final { scan-assembler "\t.size\txx, 2" } } */
-/* { dg-final { scan-assembler "\t.short\t49152" } } */
+/* { dg-final { scan-assembler "\t.short\t-16384" } } */