Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
[llvm/avr.git] / test / Transforms / SimplifyCFG / trapping-load-unreachable.ll
blob0c9cc8be925145efd8c64d69adcea58eebb99108
1 ; RUN: opt < %s -simplifycfg -S | grep {volatile load}
2 ; PR2967
4 target datalayout =
5 "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32"
6 target triple = "i386-pc-linux-gnu"
8 define void @foo(i32 %x) nounwind {
9 entry:
10         %0 = icmp eq i32 %x, 0          ; <i1> [#uses=1]
11         br i1 %0, label %bb, label %return
13 bb:             ; preds = %entry
14         %1 = volatile load i32* null            ; <i32> [#uses=0]
15         unreachable
16         br label %return
17 return:         ; preds = %entry
18         ret void