1 extern void abort (void); 2 3 typedef short fract16; 4 foo(fract16 f,short n)5 fract16 foo (fract16 f, short n) 6 { 7 return __builtin_bfin_shl_fr1x16 (f, n); 8 } 9 main()10 int main () 11 { 12 fract16 t1; 13 14 t1 = foo (0xc101, 4); 15 if (t1 != 0xffff8000) 16 abort (); 17 18 return 0; 19 } 20 21