blob: 98b35fe3cba6ae1d02bc73e5fd2fdc569bd8d959 [file] [log] [blame]
Reid Spencerd0e30dc2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
Chris Lattnercf5dd042004-08-09 21:03:35 +00002
3; This testcase should not send the instcombiner into an infinite loop!
4
5int %test(int %X) {
6 %Y = rem int %X, 0
7 ret int %Y
8}