libstdc++: Make some _Hashtable members inline
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / cmpb-3.c
blob43de37a571d5412db370964e0739441525243103
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
3 /* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
4 /* { dg-require-effective-target ilp32 } */
5 /* { dg-options "-mdejagnu-cpu=power6" } */
7 void abort ();
9 long long int
10 do_compare (long long int a, long long int b)
12 return __builtin_cmpb (a, b); /* { dg-error "'__builtin_p6_cmpb' requires the '-mcpu=power6' option and either the '-m64' or '-mpowerpc64' option" } */
15 void expect (long long int pattern, long long int value)
17 if (pattern != value)
18 abort ();
21 int
22 main (int argc, char *argv[])
24 expect (0xff00000000000000LL,
25 do_compare (0x0123456789abcdefLL, 0x0100000000000000LL));
26 expect (0x00ffffffffffffff,
27 do_compare (0x0123456789abcdefLL, 0x0023456789abcdefLL));
28 expect (0x00000000000000ff,
29 do_compare (0x00000000000000efLL, 0x0123456789abcdefLL));