summaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll
blob: 9db05cda6dd06c73a989eb22f5cb42e14d529751 (plain)
1
2
3
4
5
6
7
; RUN: opt < %s -passes=instcombine

define i32 @test(i32 %X, i32 %Z) {
        %Y = srem i32 %X, undef         ; <i32> [#uses=1]
        ret i32 %Y
}