1 /* PR target/90867 */
2 /* { dg-do run { target lp64 } } */
3 /* { dg-options "-O2 -msse2" } */
4 
5 unsigned long long freq = 3600000000UL;   /* 3.6 GHz = 3600.0 MHz */
6 
7 __attribute__((noipa)) void
bar(double x)8 bar (double x)
9 {
10   static double d = 3600000000.0;
11   if (x != d)
12     __builtin_abort ();
13   d /= 1000.0;
14 }
15 
16 __attribute__ ((target ("arch=x86-64"))) int
foo()17 foo ()
18 {
19   bar ((double) freq);
20   bar (1e-3 * freq);
21   bar (1e-6 * freq);
22   bar (1e-9 * freq);
23   return 0;
24 }
25 
26 int
main()27 main ()
28 {
29   return foo ();
30 }
31