Verify that llvm can generate the prefetchw instruction when the CPU is

Atom Silvermont.

Patch by Sriram Murali.

llvm-svn: 190957
This commit is contained in:
Preston Gurd 2013-09-18 21:08:09 +00:00
parent 1c900bcf26
commit 457daddc9b
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
; RUN: llc < %s -march=x86 -mattr=+sse | FileCheck %s
; RUN: llc < %s -march=x86 -mattr=+avx | FileCheck %s
; RUN: llc < %s -march=x86 -mattr=+sse -mattr=+prfchw | FileCheck %s -check-prefix=PRFCHW
; RUN: llc < %s -mcpu=slm | FileCheck %s -check-prefix=SLM
; rdar://10538297
@ -11,6 +12,7 @@ entry:
; CHECK: prefetcht0
; CHECK: prefetchnta
; PRFCHW: 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 )