Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr115713-1.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 incompatible -maltivec and -mvsx
6 even when they are specified by target attributes. */
7
8 int __attribute__ ((target ("no-altivec,vsx")))
9 test1 (void)
10 {
11 /* { dg-error "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } .-1 } */
12 return 0;
13 }
14
15 int __attribute__ ((target ("vsx,no-altivec")))
16 test2 (void)
17 {
18 /* { dg-error "'-mvsx' and '-mno-altivec' are incompatible" "" { target *-*-* } .-1 } */
19 return 0;
20 }