1 ; This test makes sure that div instructions are properly eliminated.
4 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div
13 uint %test2(uint %A) {
14 %B = div uint %A, 8 ; => Shift
19 %B = div int 0, %A ; => 0, don't need to keep traps
24 %B = div int %A, -1 ; 0-A
28 uint %test5(uint %A) {
29 %B = div uint %A, 4294967280
30 %C = div uint %B, 4294967292