mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 20:43:44 +02:00
f7935a3f63
`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
28 lines
1.0 KiB
LLVM
28 lines
1.0 KiB
LLVM
; RUN: llc < %s -mtriple=i686-- -mattr=+sse | FileCheck %s
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=+avx | FileCheck %s
|
|
; RUN: llc < %s -mtriple=i686-- -mattr=+sse -mattr=+prfchw | FileCheck %s -check-prefix=PRFCHW
|
|
; RUN: llc < %s -mtriple=i686-- -mcpu=slm | FileCheck %s -check-prefix=SLM
|
|
; RUN: llc < %s -mtriple=i686-- -mcpu=btver2 | FileCheck %s -check-prefix=PRFCHW
|
|
; RUN: llc < %s -mtriple=i686-- -mcpu=btver2 -mattr=-prfchw | FileCheck %s -check-prefix=NOPRFCHW
|
|
|
|
; rdar://10538297
|
|
|
|
define void @t(i8* %ptr) nounwind {
|
|
entry:
|
|
; CHECK: prefetcht2
|
|
; CHECK: prefetcht1
|
|
; CHECK: prefetcht0
|
|
; CHECK: prefetchnta
|
|
; PRFCHW: prefetchw
|
|
; NOPRFCHW-NOT: prefetchw
|
|
; SLM: prefetchw
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 1, i32 1 )
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 2, i32 1 )
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 3, i32 1 )
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 0, i32 0, i32 1 )
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 1, i32 3, i32 1 )
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
|