annotate gcc/testsuite/gcc.target/riscv/shorten-memrefs-1.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 "-Os -march=rv32imc -mabi=ilp32" } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 /* These stores cannot be compressed because x0 is not a compressed reg.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4 Therefore the shorten_memrefs pass should not attempt to rewrite them into a
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 compressible format. */
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 store1z (int *array)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10 array[200] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 array[201] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 array[202] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 array[203] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 void
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 store2z (long long *array)
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19 array[200] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
20 array[201] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
21 array[202] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
22 array[203] = 0;
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
23 }
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
24
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
25 /* { dg-final { scan-assembler-not "store1z:\n\taddi" } } */
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
26 /* { dg-final { scan-assembler-not "store2z:\n\taddi" } } */