mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
b3a8585bc1
`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. This patch: - Removes -march if the .ll file already has a matching `target triple` directive or -mtriple argument. - In all other cases changes -march=ppc32/-march=ppc64 to -mtriple=ppc32--/-mtriple=ppc64-- See also the discussion in https://reviews.llvm.org/D35287 llvm-svn: 309754
26 lines
1.1 KiB
LLVM
26 lines
1.1 KiB
LLVM
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc64--
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32--
|
|
; RUN: llc -verify-machineinstrs < %s
|
|
; REQUIRES: default_triple
|
|
|
|
define void @bitap() {
|
|
entry:
|
|
%RMask.i = alloca [256 x i32], align 16 ; <[256 x i32]*> [#uses=1]
|
|
%buffer = alloca [147456 x i8], align 16 ; <[147456 x i8]*> [#uses=0]
|
|
br i1 false, label %bb19, label %bb.preheader
|
|
bb.preheader: ; preds = %entry
|
|
ret void
|
|
bb19: ; preds = %entry
|
|
br i1 false, label %bb12.i, label %cond_next39
|
|
bb12.i: ; preds = %bb12.i, %bb19
|
|
%i.0.i = phi i32 [ %tmp11.i, %bb12.i ], [ 0, %bb19 ] ; <i32> [#uses=2]
|
|
%gep.upgrd.1 = zext i32 %i.0.i to i64 ; <i64> [#uses=1]
|
|
%tmp9.i = getelementptr [256 x i32], [256 x i32]* %RMask.i, i32 0, i64 %gep.upgrd.1 ; <i32*> [#uses=1]
|
|
store i32 0, i32* %tmp9.i
|
|
%tmp11.i = add i32 %i.0.i, 1 ; <i32> [#uses=1]
|
|
br label %bb12.i
|
|
cond_next39: ; preds = %bb19
|
|
ret void
|
|
}
|
|
|