[llvm-bugs] [Bug 34226] New: prefetch instruction is not accepted in inline asm, sparc
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 17 14:14:13 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34226
Bug ID: 34226
Summary: prefetch instruction is not accepted in inline asm,
sparc
Product: new-bugs
Version: trunk
Hardware: Sun
OS: Solaris
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: alexander.kirov at oracle.com
CC: llvm-bugs at lists.llvm.org
Consider the code sample:
] cat prefetch.cpp
void _Prefetch_read (void *loc, int interval) {
__asm__ volatile
("prefetch [%0+%1], 0" : : "r" (loc), "r" (interval) : "memory" );
}
int main() {
int * i = new int[10];
_Prefetch_read(i, 5);
return 0;
}
] clang++ prefetch.cpp
prefetch.cpp:3:8: error: invalid instruction mnemonic
("prefetch [%0+%1], 0" : : "r" (loc), "r" (interval) : "memory" );
^
<inline asm>:1:2: note: instantiated into assembly here
prefetch [%i0+%i1], 0
^
1 error generated.
] g++ prefetch.cpp
] a.out
] CC prefetch.cpp
] a.out
--
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/20170817/46b94c20/attachment.html>
More information about the llvm-bugs
mailing list