[Bug middle-end/89726] New: Incorrect inlined version of 'ceil' for 32bit

2019-03-15 Thread xan at igalia dot com
Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: xan at igalia dot com Target Milestone: --- Using GCC 9.0.1 20190314 (experimental) (GCC) on GNU/Linux x86-64. When compiling the following program: #include #include int main(int argc, const

[Bug middle-end/89726] Incorrect inlined version of 'ceil' for 32bit

2019-03-15 Thread xan at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89726 --- Comment #2 from Xan Lopez --- (In reply to Jakub Jelinek from comment #1) > This is just incorrect expectations. > "The signbit macro returns a nonzero value if and only if the sign of its > argument value is negative." > says the standard an

[Bug middle-end/89726] Incorrect inlined version of 'ceil' for 32bit

2019-03-15 Thread xan at igalia dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89726 --- Comment #3 from Xan Lopez --- FWIW, the previous testcase I was using, which is a bit more convoluted, is this one: #include #include double mathCeil(double n) { return ceil(n); } int main() { double a = -0.9; double result =