[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / Generic / div-neg-power-2.ll
1 ; RUN: llc < %s
2
3 define i32 @test(i32 %X) {
4         %Y = sdiv i32 %X, -2            ; <i32> [#uses=1]
5         ret i32 %Y
6 }
7