aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20090721-1.c
blob: 928cafa6c7c655c47dc1cf00121631f8bd2641f8 (plain)
1
2
3
/* { dg-options "-fno-tree-sra" } */
union u {double d;long long ll;};
int 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;}