AArch64: Fix testcase
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 27 Oct 2022 15:40:17 +0000 (16:40 +0100)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Fri, 4 Nov 2022 17:09:30 +0000 (17:09 +0000)
gcc/testsuite/
* gcc.target/aarch64/mgeneral-regs_3.c: Fix testcase.

gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c

index fa62999..4e634f6 100644 (file)
@@ -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;
 }