libstdc++: Qualify calls in <bits/stl_uninitialized.h> to prevent ADL
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / cmpb32-1.c
blob9386ac0fcdd35e87a7b16d6e0fe28c06eca96523
1 /* { dg-do run { target { powerpc*-*-* } } } */
2 /* { dg-require-effective-target dfp_hw } */
3 /* { dg-options "-mdejagnu-cpu=power6" } */
5 void abort ();
7 unsigned int
8 do_compare (unsigned int a, unsigned int b)
10 return __builtin_cmpb (a, b);
13 void
14 expect (unsigned int pattern, unsigned int value)
16 if (pattern != value)
17 abort ();
20 int
21 main (int argc, char *argv[])
23 expect (0xff000000, do_compare (0x12345678, 0x12000000));
24 expect (0x00ffffff, do_compare (0x12345678, 0x00345678));
25 expect (0x000000ff, do_compare (0x00000078, 0x12345678));