Ticket #5615 (new bug)
ghc produces poor code for `div` with constant powers of 2.
|Reported by:||Lennart||Owned by:||daniel.is.fischer|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
The code for Int (div x c) where c is a constant of the form 2n should be implemented with an arithmetic right shift, currently it's a call to a function. This optimization should be done for all signed types.