Debian Codegraph @

gcc/testsuite/gcc.target/cris/inasm-other.c

raw
1 /* { dg-do assemble } */
2 /* The base test-case is sort-of-disabled or rather made
3 always-pass, but remains included by other tests. */
4
5 /* Make sure we can (generate code and) assemble for the "other"
6 variant, with the twist that the gcc option -march=v0 isn't
7 valid for the assembler. We don't check that the generated code
8 is for the other variant; other tests cover that already, but they
9 don't *assemble* the result. We can't trust the prologue and
10 epilogue to contain incompatible insns (they actually deliberately
11 don't, usually and it'd be brittle to tweak the function signature
12 to make it so), so we force some with inline asm. */
13
14 void f(void)
15 {
16 #ifdef OTHER_ISA
17 asm volatile ("0: move.d [$r12=$sp+42],$r10\n\t"
18 "bwf 0b\n\t"
19 "nop");
20 #endif
21 }