summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/bfin/20090914-3.c
blob: fb0a9e16c73153b11920dd8b14cc4a6e66d3c22c (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile { target bfin-*-* } } */
typedef long fract32;
main() {
  fract32 val_tmp;
  fract32 val1 = 0x7FFFFFFF;
  fract32 val2 = 0x40000000;
  val_tmp = __builtin_bfin_mult_fr1x32x32 (0x06666667, val1);
  val2 = __builtin_bfin_mult_fr1x32x32 (0x79999999, val2);
  val2 = __builtin_bfin_add_fr1x32 (val_tmp, val2);
}