[llvm] r190957 - Verify that llvm can generate the prefetchw instruction when the CPU is
Preston Gurd
preston.gurd at intel.com
Wed Sep 18 14:08:09 PDT 2013
Author: pgurd
Date: Wed Sep 18 16:08:09 2013
New Revision: 190957
URL: http://llvm.org/viewvc/llvm-project?rev=190957&view=rev
Log:
Verify that llvm can generate the prefetchw instruction when the CPU is
Atom Silvermont.
Patch by Sriram Murali.
Modified:
llvm/trunk/test/CodeGen/X86/prefetch.ll
Modified: llvm/trunk/test/CodeGen/X86/prefetch.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/prefetch.ll?rev=190957&r1=190956&r2=190957&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/prefetch.ll (original)
+++ llvm/trunk/test/CodeGen/X86/prefetch.ll Wed Sep 18 16:08:09 2013
@@ -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 )
More information about the llvm-commits
mailing list