1 ; RUN: opt < %s -instcombine -S > %t1.ll
2 ; RUN: grep udiv %t1.ll | count 2
3 ; RUN: grep zext %t1.ll | count 2
6 ; The udiv instructions shouldn't be optimized away, and the
7 ; sext instructions should be optimized to zext.
9 define i64 @bar(i32 %x) nounwind {
12 %z = sext i32 %r to i64
15 define i64 @qux(i32 %x, i32 %v) nounwind {
18 %z = sext i32 %r to i64