diff --git a/llvm/test/Regression/Transforms/InstCombine/rem.ll b/llvm/test/Regression/Transforms/InstCombine/rem.ll index b7a9a0aa839c..dd4b42aee07e 100644 --- a/llvm/test/Regression/Transforms/InstCombine/rem.ll +++ b/llvm/test/Regression/Transforms/InstCombine/rem.ll @@ -19,3 +19,9 @@ uint %test3(uint %A) { %B = rem uint %A, 8 ; & 7 ret uint %B } + +bool %test3(int %A) { + %B = rem int %A, -8 ; & 7 + %C = setne int %B, 0 + ret bool %C +}