gcc has used this on x86-64 since at least version 7.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
compiler-rt/test/builtins/Unit/divmodti4_test.c | ||
---|---|---|
84 | There is no test where the divisor has its high bits set. Will be good adding some coverage here. |
compiler-rt/test/builtins/Unit/divmodti4_test.c | ||
---|---|---|
84 | You mean just the high bit set? |
compiler-rt/test/builtins/Unit/divmodti4_test.c | ||
---|---|---|
84 | The high word. All the existing tests set the high word to 0. |
compiler-rt/test/builtins/Unit/divmodti4_test.c | ||
---|---|---|
84 | Don't the -1, -2, -3 divisors set the high bit of the high word? |
clang-format: please reformat the code