[Bug libgcc/69233] fixtfti returns bad value for TI overflow

2016-01-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69233 --- Comment #1 from Andrew Pinski --- It is unspecified what the value of an overflow conversion is. So 1 is correct so is -1 and/or INT_MAX. I don't think this is a bug. The test code which depends on these values is broken and should not be

[Bug libgcc/69233] fixtfti returns bad value for TI overflow

2016-01-11 Thread munroesj at us dot ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69233 --- Comment #2 from Steven Munroe --- Well the language spec may not specify. But I can ask the platform to be consistent with itself. For PowerISA I would expect long double -> __int128 to be consistent with double -> long, which saturates