From: Alexandre Oliva Date: Fri, 1 Jan 2021 00:38:22 +0000 (-0300) Subject: -mno-long-calls for expected regalloc in arm/fp16-aapcs-2.c test X-Git-Tag: upstream/12.2.0~10570 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe0e54c69fc0c07144ce7e8710c29162053430b3;p=platform%2Fupstream%2Fgcc.git -mno-long-calls for expected regalloc in arm/fp16-aapcs-2.c test The implicit -mlong-calls used in our arm-vxworks configurations changes the register allocation patterns in the arm/fp16-aapcs-2.c test: r3 ends up used in the long-call sequence, and we end up using ip as a temporary, which doesn't match the expected mov patterns. This patch adds an explicit -mno-long-calls for the generated code to match the expectation. for gcc/testsuite/ChangeLog * gcc.target/arm/fp16-aapcs-2.c: Use -mno-long-calls. --- diff --git a/gcc/testsuite/gcc.target/arm/fp16-aapcs-2.c b/gcc/testsuite/gcc.target/arm/fp16-aapcs-2.c index 51a76fc..c34387f 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-aapcs-2.c +++ b/gcc/testsuite/gcc.target/arm/fp16-aapcs-2.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_fp16_ok } */ -/* { dg-options "-mfloat-abi=softfp -O2" } */ +/* { dg-options "-mfloat-abi=softfp -O2 -mno-long-calls" } */ /* { dg-add-options arm_fp16_ieee } */ /* { dg-skip-if "incompatible float-abi" { arm*-*-* } { "-mfloat-abi=hard" } } */