
`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
15 lines
469 B
LLVM
15 lines
469 B
LLVM
; RUN: llc < %s -mtriple=x86_64-- -mcpu=corei7 -debug
|
|
|
|
; REQUIRES: asserts
|
|
|
|
; Test that the dag combiner doesn't assert if we try to replace a sequence of two
|
|
; v4f32 X86ISD::PSHUFD nodes with a single PSHUFD.
|
|
|
|
|
|
define <4 x float> @test(<4 x float> %V) {
|
|
%1 = shufflevector <4 x float> %V, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1>
|
|
%2 = shufflevector <4 x float> %1, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1>
|
|
ret <4 x float> %2
|
|
}
|
|
|