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;}