llvm-mirror/test/CodeGen/X86/pr3241.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

30 lines
586 B
LLVM

; RUN: llc < %s -mtriple=i686--
; PR3241
@g_620 = external global i32
define void @func_18(i32 %p_21) nounwind {
entry:
%t0 = call i32 @func_31(i32 %p_21) nounwind
%t1 = call i32 @safe_add_macro_uint32_t_u_u() nounwind
%t2 = icmp sgt i32 %t1, 0
%t3 = zext i1 %t2 to i32
%t4 = load i32, i32* @g_620, align 4
%t5 = icmp eq i32 %t3, %t4
%t6 = xor i32 %p_21, 1
%t7 = call i32 @func_55(i32 %t6) nounwind
br i1 %t5, label %return, label %bb
bb:
unreachable
return:
unreachable
}
declare i32 @func_31(i32)
declare i32 @safe_add_macro_uint32_t_u_u()
declare i32 @func_55(i32)