Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git] / test / Transforms / ConstProp / 2002-05-03-DivideByZeroException.ll
blob15a6211893826ccbe134e613fcc9e180beff8a19
1 ; Make sure that the constant propogator doesn't divide by zero!
3 ; RUN: opt < %s -constprop
6 define i32 @test() {
7         %R = sdiv i32 12, 0             ; <i32> [#uses=1]
8         ret i32 %R
11 define i32 @test2() {
12         %R = srem i32 12, 0             ; <i32> [#uses=1]
13         ret i32 %R