From 42c5d1212ff6544be1061d488aa7ebee9463c375 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 28 Jun 2018 16:09:39 +0000 Subject: [PATCH] [testsuite] Fix f16_mov_immediate_3.c Fix and simplify the testcase so it generates dup even on latest trunk. testsuite/ * gcc.target/aarch64/f16_mov_immediate_3.c: Fix testcase. From-SVN: r262222 --- gcc/testsuite/ChangeLog | 4 ++++ .../gcc.target/aarch64/f16_mov_immediate_3.c | 13 +++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c95ec808b74..b7a47ed979c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-06-28 Wilco Dijkstra + + * gcc.target/aarch64/f16_mov_immediate_3.c: Fix testcase. + 2018-06-28 Fritz Reese PR fortran/82865 diff --git a/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c b/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c index 6dc325b10b7..66218e3eaac 100644 --- a/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c +++ b/gcc/testsuite/gcc.target/aarch64/f16_mov_immediate_3.c @@ -1,18 +1,11 @@ /* { dg-do compile } */ -/* { dg-options "-O0" } */ - -extern __fp16 foo (); +/* { dg-options "-O2" } */ __fp16 f4 () { - __fp16 a = 0; - __fp16 b = 1; - __fp16 c = 2; - __fp16 d = 4; + __fp16 a = 0.1; - __fp16 z = a + b; - z = z + c; - z = z - d; + __fp16 z = a * a; return z; } -- 2.30.2