2010-11-19 21:49:38 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse | FileCheck %s
|
2011-12-08 19:21:39 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+avx | FileCheck %s
|
2013-03-26 18:15:45 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mattr=+sse -mattr=+prfchw | FileCheck %s -check-prefix=PRFCHW
|
2013-09-18 21:39:33 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mcpu=slm | FileCheck %s -check-prefix=SLM
|
2013-10-16 19:04:11 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mcpu=btver2 | FileCheck %s -check-prefix=PRFCHW
|
|
|
|
; RUN: llc < %s -march=x86 -mcpu=btver2 -mattr=-prfchw | FileCheck %s -check-prefix=NOPRFCHW
|
2011-12-08 19:21:39 +00:00
|
|
|
|
|
|
|
; rdar://10538297
|
2008-03-08 00:58:38 +00:00
|
|
|
|
|
|
|
define void @t(i8* %ptr) nounwind {
|
|
|
|
entry:
|
2010-11-19 21:49:38 +00:00
|
|
|
; CHECK: prefetcht2
|
|
|
|
; CHECK: prefetcht1
|
|
|
|
; CHECK: prefetcht0
|
|
|
|
; CHECK: prefetchnta
|
2013-03-26 17:47:11 +00:00
|
|
|
; PRFCHW: prefetchw
|
2013-10-16 19:04:11 +00:00
|
|
|
; NOPRFCHW-NOT: prefetchw
|
2013-09-18 21:08:09 +00:00
|
|
|
; SLM: prefetchw
|
2011-06-14 04:58:37 +00:00
|
|
|
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 )
|
2013-03-26 17:47:11 +00:00
|
|
|
tail call void @llvm.prefetch( i8* %ptr, i32 1, i32 3, i32 1 )
|
2008-03-08 00:58:38 +00:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2011-06-14 04:58:37 +00:00
|
|
|
declare void @llvm.prefetch(i8*, i32, i32, i32) nounwind
|