diff --git a/test/Transforms/InstCombine/div.ll b/test/Transforms/InstCombine/div.ll index 8e03fc02d4c..54199aedd07 100644 --- a/test/Transforms/InstCombine/div.ll +++ b/test/Transforms/InstCombine/div.ll @@ -55,3 +55,9 @@ bool %test9(ubyte %A) { ret bool %C } +uint %test10(uint %X, bool %C) { + %V = select bool %C, uint 64, uint 8 + %R = div uint %X, %V + ret uint %R +} + diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index dd4b42aee07..2020bf98aea 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -25,3 +25,9 @@ bool %test3(int %A) { %C = setne int %B, 0 ret bool %C } + +uint %test4(uint %X, bool %C) { + %V = select bool %C, uint 1, uint 8 + %R = rem uint %X, %V + ret uint %R +}