1 /* Test __MQSLLHI. */ 2 /* { dg-options "-mcpu=fr450" } */ 3 /* { dg-do run } */ 4 extern void abort (void); 5 extern void exit (int); 6 main()7int main () 8 { 9 if (__MQSLLHI (0x0001000200030004ULL, 1) != 0x0002000400060008ULL) 10 abort (); 11 12 if (__MQSLLHI (0xfffffffefffcfff8ULL, 1) != 0xfffefffcfff8fff0ULL) 13 abort (); 14 15 if (__MQSLLHI (0xfffffffefffcfff8ULL, 12) != 0xf000e000c0008000ULL) 16 abort (); 17 18 if (__MQSLLHI (0x123456789abcdef0ULL, 12) != 0x40008000c0000000ULL) 19 abort (); 20 21 if (__MQSLLHI (0x123456789abcdef0ULL, 16) != 0x123456789abcdef0ULL) 22 abort (); 23 24 exit (0); 25 } 26