comparison gcc/testsuite/gcc.target/aarch64/mgeneral-regs_5.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 /* { dg-options "-mgeneral-regs-only -O2" } */
2
3 struct S { float d; };
4
5 void bar (struct S);
6
7 void
8 f0 (int x)
9 {
10 struct S s = { .d = 0.0f }; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
11 ((char *) &s.d)[0] = x;
12 s.d *= 7.0; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
13 bar (s); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
14 }