[Bug c/82068] wrong double to uint64_t conversion with -mieee

2017-09-01 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82068 --- Comment #4 from coypu --- sorry, I attached an object file rather than assembly. I am guessing it's good enough. I am passing only -mieee to make it fail. (If I use instead -mieee -mfp-trap-mode=n, it doesn't fail, and I get a very similar

[Bug c/82068] wrong double to uint64_t conversion with -mieee

2017-09-01 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82068 --- Comment #3 from coypu --- Created attachment 42104 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42104=edit -mieee -mfp-trap-mode=n, doesn't assert

[Bug c/82068] wrong double to uint64_t conversion with -mieee

2017-09-01 Thread coypu at sdf dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82068 --- Comment #2 from coypu --- Created attachment 42103 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42103=edit -mieee, asserts

[Bug c/82068] wrong double to uint64_t conversion with -mieee

2017-09-01 Thread ubizjak at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82068 --- Comment #1 from Uroš Bizjak --- It works for me. Can you please post exact compile flags and perhaps failing assembly file?