annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 /* { dg-options "-mgeneral-regs-only -O2" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 struct S { float d; };
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 void bar (struct S);
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 f0 (int x)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 struct S s = { .d = 0.0f }; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 ((char *) &s.d)[0] = x;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 s.d *= 7.0; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 bar (s); /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 }