diff options
Diffstat (limited to 'test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx')
-rw-r--r-- | test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx new file mode 100644 index 0000000..98b35fe --- /dev/null +++ b/test/Transforms/InstCombine/2004-08-09-RemInfLoop.llx @@ -0,0 +1,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 +} |