Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr115713-2.c

raw
1 /* { dg-do compile } */
2 /* Force power7 to avoid possible error message on AltiVec ABI change. */
3 /* { dg-options "-mdejagnu-cpu=power7" } */
4
5 /* Verify there is an error message for -mvsx incompatible with
6 -mavoid-indexed-addresses even when they are specified by
7 target attributes. */
8
9 int __attribute__ ((target ("avoid-indexed-addresses,vsx")))
10 test1 (void)
11 {
12 /* { dg-error "'-mvsx' and '-mavoid-indexed-addresses' are incompatible" "" { target *-*-* } .-1 } */
13 return 0;
14 }
15
16 int __attribute__ ((target ("vsx,avoid-indexed-addresses")))
17 test2 (void)
18 {
19 /* { dg-error "'-mvsx' and '-mavoid-indexed-addresses' are incompatible" "" { target *-*-* } .-1 } */
20 return 0;
21 }
22