1 ; RUN: opt < %s -instsimplify -S | FileCheck %s
3 define i32 @select1(i32 %x, i1 %b) {
5 %rhs = select i1 %b, i32 %x, i32 1
6 %rem = srem i32 %x, %rhs
11 define i32 @select2(i32 %x, i1 %b) {
13 %rhs = select i1 %b, i32 %x, i32 1
14 %rem = urem i32 %x, %rhs