summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20090721-1.c
blob: 2122b3405d65d5288ef6c32905fe24cf98c354be (plain)
1
2
3
/* { dg-options "-fno-tree-sra" } */
union u {double d;long long ll;};
f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll-=1<<-n;v.ll>>=-n;}return v.ll;}