1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/CodeGen/X86/2010-02-03-DualUndef.ll
Matthias Braun f7935a3f63 X86: Do not use llc -march in tests.
`llc -march` is problematic because it only switches the target
architecture, but leaves the operating system unchanged. This
occasionally leads to indeterministic tests because the OS from
LLVM_DEFAULT_TARGET_TRIPLE is used.

However we can simply always use `llc -mtriple` instead. This changes
all the tests to do this to avoid people using -march when they copy and
paste parts of tests.

See also the discussion in https://reviews.llvm.org/D35287

llvm-svn: 309774
2017-08-02 00:28:10 +00:00

28 lines
1009 B
LLVM

; RUN: llc < %s -mtriple=x86_64--
; PR6086
define fastcc void @prepOutput() nounwind {
bb: ; preds = %output.exit
br label %bb.i1
bb.i1: ; preds = %bb7.i, %bb
br i1 undef, label %bb7.i, label %bb.nph.i
bb.nph.i: ; preds = %bb.i1
br label %bb3.i
bb3.i: ; preds = %bb5.i6, %bb.nph.i
%tmp10.i = trunc i64 undef to i32 ; <i32> [#uses=1]
br i1 undef, label %bb4.i, label %bb5.i6
bb4.i: ; preds = %bb3.i
br label %bb5.i6
bb5.i6: ; preds = %bb4.i, %bb3.i
%0 = phi i32 [ undef, %bb4.i ], [ undef, %bb3.i ] ; <i32> [#uses=1]
%1 = icmp slt i32 %0, %tmp10.i ; <i1> [#uses=1]
br i1 %1, label %bb7.i, label %bb3.i
bb7.i: ; preds = %bb5.i6, %bb.i1
br label %bb.i1
}