Displaying 1 result from an estimated 1 matches for "5xqyhh".
2018 Dec 01
2
Where's the optimiser gone? (part 5.a): missed tail calls, and more...
Compile the following functions with "-O3 -target amd64"
(see <https://godbolt.org/z/5xqYhH>):
__int128 div(__int128 foo, __int128 bar)
{
return foo / bar;
}
On the left the generated code; on the right the expected,
properly optimised code:
div: # @div
push rbp |
mov rbp, rsp |
call __divti3 | jmp __divti3
pop rbp |
ret...