comparison 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
comparison
equal deleted inserted replaced
18:1830386684a0 19:2b5abeee2509
1 /* { dg-options "-Os -march=rv32imc -mabi=ilp32" } */
2
3 /* These stores cannot be compressed because x0 is not a compressed reg.
4 Therefore the shorten_memrefs pass should not attempt to rewrite them into a
5 compressible format. */
6
7 void
8 store1z (int *array)
9 {
10 array[200] = 0;
11 array[201] = 0;
12 array[202] = 0;
13 array[203] = 0;
14 }
15
16 void
17 store2z (long long *array)
18 {
19 array[200] = 0;
20 array[201] = 0;
21 array[202] = 0;
22 array[203] = 0;
23 }
24
25 /* { dg-final { scan-assembler-not "store1z:\n\taddi" } } */
26 /* { dg-final { scan-assembler-not "store2z:\n\taddi" } } */