| 1 |
extern void abort (void); |
| 2 |
extern void exit (int); |
| 3 |
|
| 4 |
typedef short fract16; |
| 5 |
|
| 6 |
int main () |
| 7 |
{ |
| 8 |
fract16 f = 0x1234, g; |
| 9 |
int a; |
| 10 |
|
| 11 |
a = __builtin_bfin_norm_fr1x16 (f); |
| 12 |
g = f << a; |
| 13 |
if (g != (fract16) 0x48d0) |
| 14 |
abort (); |
| 15 |
|
| 16 |
exit (0); |
| 17 |
} |
| 18 |
|