From: Preston Gurd Date: Wed, 18 Sep 2013 21:08:09 +0000 (+0000) Subject: Verify that llvm can generate the prefetchw instruction when the CPU is X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7d03cc871546dd7f3edd36b334e83a34d04bee03;p=oota-llvm.git Verify that llvm can generate the prefetchw instruction when the CPU is Atom Silvermont. Patch by Sriram Murali. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190957 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/prefetch.ll b/test/CodeGen/X86/prefetch.ll index efb51913c5c..08a913638b6 100644 --- a/test/CodeGen/X86/prefetch.ll +++ b/test/CodeGen/X86/prefetch.ll @@ -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 )