annotate gcc/testsuite/gcc.target/i386/pr95046-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 /* PR target/95046 */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 /* { dg-do compile { target { ! ia32 } } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* { dg-options "-O3 -mavx512vl" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6 float r[2];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 int s[2];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8 unsigned int u[2];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 test_float (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 for (int i = 0; i < 2; i++)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 r[i] = s[i];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 /* { dg-final { scan-assembler "\tvcvtdq2ps" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
20 test_ufloat (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
21 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
22 for (int i = 0; i < 2; i++)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
23 r[i] = u[i];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
24 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
25
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
26 /* { dg-final { scan-assembler "\tvcvtudq2ps" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
27
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
28 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
29 test_fix (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
30 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
31 for (int i = 0; i < 2; i++)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
32 s[i] = r[i];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
33 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
34
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
35 /* { dg-final { scan-assembler "\tvcvttps2dq" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
36
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
37 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
38 test_ufix (void)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
39 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
40 for (int i = 0; i < 2; i++)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
41 u[i] = r[i];
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
42 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
43
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
44 /* { dg-final { scan-assembler "\tvcvttps2udq" } } */