From 1275a541a59e4d74101bd34eb907ba6d5844f810 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 26 Sep 2019 10:43:09 +0000 Subject: [PATCH] [arm] Update FP16 tests 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 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 | 6 ++++++ gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c | 2 +- gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1f99dbd1c8e..0274587a244 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-09-26 Richard Sandiford + + * 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 PR tree-optimization/91885 diff --git a/gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c b/gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c index e786a51da69..7221766284e 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c +++ b/gcc/testsuite/gcc.target/arm/fp16-compile-alt-3.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c b/gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c index 90edd01198a..1f1e074e092 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c +++ b/gcc/testsuite/gcc.target/arm/fp16-compile-ieee-3.c @@ -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" } } */ -- 2.30.2