search for: absvsi2_test

Displaying 2 results from an estimated 2 matches for "absvsi2_test".

2015 Oct 24
2
[compiler-rt] Undefined negation in float emulation functions
.... Your suggestion looks good to me, but I don't have an environment set up to build the test suite so it may take me a little while to get back to you with a validated patch. A bit of creative grepping yields the following that also look problematic to me: compiler-rt/test/builtins/Unit/absvsi2_test.c: expected = -expected; compiler-rt/test/builtins/Unit/absvti2_test.c: expected = -expected; compiler-rt/test/builtins/Unit/absvdi2_test.c: expected = -expected; I confess I don't fully understand the way these tests are written. E.g. compiler-rt/test/builtin...
2015 Oct 20
2
[compiler-rt] Undefined negation in float emulation functions
Hi, I recently came across the following in __floatsidf in compiler-rt: __floatsidf(int a) { ... if (a < 0) { ... a = -a; In the case where a == INT_MIN, is this negation not undefined behaviour? AIUI this function is used for software emulation on targets that have no hardware floating point support. Perhaps there is an in-built assumption