Debian Codegraph @

gcc/testsuite/gcc.target/alpha/memclr-a2-o1-c9-ptr-safe-partial.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mbwx -msafe-partial" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } } */
4
5 #include "memclr-a2-o1-c9-ptr.c"
6
7 /* Expect assembly such as:
8
9 stb $31,1($16)
10 stw $31,2($16)
11 stw $31,4($16)
12 stw $31,6($16)
13 stw $31,8($16)
14
15 that is with a byte store at offset 1, followed by word stores at
16 offsets 2, 4, 6, and 8. */
17
18 /* { dg-final { scan-assembler-times "\\sstb\\s\\\$31,1\\\(\\\$16\\\)\\s" 1 } } */
19 /* { dg-final { scan-assembler-times "\\sstw\\s\\\$31,2\\\(\\\$16\\\)\\s" 1 } } */
20 /* { dg-final { scan-assembler-times "\\sstw\\s\\\$31,4\\\(\\\$16\\\)\\s" 1 } } */
21 /* { dg-final { scan-assembler-times "\\sstw\\s\\\$31,6\\\(\\\$16\\\)\\s" 1 } } */
22 /* { dg-final { scan-assembler-times "\\sstw\\s\\\$31,8\\\(\\\$16\\\)\\s" 1 } } */