[committed] AArch64: Fix testcase

Message ID DB3PR08MB89866C068CE122E2FEEF152E833B9@DB3PR08MB8986.eurprd08.prod.outlook.com
State Accepted
Headers
Series [committed] AArch64: Fix testcase |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Wilco Dijkstra Nov. 4, 2022, 5:11 p.m. UTC
  Committed as trivial fix.

gcc/testsuite/
	* gcc.target/aarch64/mgeneral-regs_3.c: Fix testcase.

---
  

Patch

diff --git a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c
index fa6299960e77141ce747552cfbe3256a7a96d229..4e634f6ebe2b769b85417bca056457b9176645c4 100644
--- a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c
+++ b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c
@@ -3,9 +3,9 @@ 
 extern void abort (void);
 
 int
-test (int i, ...)
+test (int i, ...) /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
 {
-  float f = (float) i; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
-  if (f != f) abort ();
+  float f = (float) i;
+  if (f != 0) abort ();
   return 2;
 }