[LLVMbugs] [Bug 20692] New: Prefetch not supported
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 18 00:30:46 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20692
Bug ID: 20692
Summary: Prefetch not supported
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
; ModuleID = 'p.c' (aka. "void test(char *x) { __builtin_prefetch(x, 1); }")
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64--linux-gnu"
; Function Attrs: nounwind
define void @test(i8* nocapture %x) {
entry:
tail call void @llvm.prefetch(i8* %x, i32 1, i32 3, i32 1)
ret void
}
; Function Attrs: nounwind
declare void @llvm.prefetch(i8* nocapture, i32, i32, i32) nounwind
If you run that, you get:
nlewycky at ducttape:~$ llc p.ll
LLVM ERROR: Cannot select: 0x320f110: ch = Prefetch 0x31dd410, 0x320edf8,
0x320ef00, 0x320f008, 0x320ef00<ST1[%x]> [ORD=2] [ID=5]
0x320edf8: i64,ch = CopyFromReg 0x31dd410, 0x320ecf0 [ORD=1] [ID=4]
0x320ecf0: i64 = Register %vreg0 [ID=1]
0x320ef00: i32 = Constant<1> [ID=2]
0x320f008: i32 = Constant<3> [ID=3]
0x320ef00: i32 = Constant<1> [ID=2]
In function: test
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140818/c8cccff2/attachment.html>
More information about the llvm-bugs
mailing list