Reid Spencer | d0e30dc | 2006-12-02 04:23:10 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine |
Chris Lattner | cf5dd04 | 2004-08-09 21:03:35 +0000 | [diff] [blame] | 2 | |
3 | ; This testcase should not send the instcombiner into an infinite loop! | ||||
4 | |||||
5 | int %test(int %X) { | ||||
6 | %Y = rem int %X, 0 | ||||
7 | ret int %Y | ||||
8 | } |