mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-02 00:42:52 +01:00
205b641954
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
20 lines
531 B
LLVM
20 lines
531 B
LLVM
; RUN: opt < %s -simplifycfg -S | grep {volatile load}
|
|
; PR2967
|
|
|
|
target datalayout =
|
|
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32"
|
|
target triple = "i386-pc-linux-gnu"
|
|
|
|
define void @foo(i32 %x) nounwind {
|
|
entry:
|
|
%0 = icmp eq i32 %x, 0 ; <i1> [#uses=1]
|
|
br i1 %0, label %bb, label %return
|
|
|
|
bb: ; preds = %entry
|
|
%1 = volatile load i32* null ; <i32> [#uses=0]
|
|
unreachable
|
|
br label %return
|
|
return: ; preds = %entry
|
|
ret void
|
|
}
|