aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx
blob: 98b35fe3cba6ae1d02bc73e5fd2fdc569bd8d959 (plain)
1
2
3
4
5
6
7
8
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine

; This testcase should not send the instcombiner into an infinite loop!

int %test(int %X) {
	%Y = rem int %X, 0
	ret int %Y
}