[llvm-bugs] [Bug 42040] New: PowerPC/AltiVec: does not use xxswapd/xxpermdi on -mcpu=power9
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 27 13:57:13 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42040
Bug ID: 42040
Summary: PowerPC/AltiVec: does not use xxswapd/xxpermdi on
-mcpu=power9
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: slandden at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
This code should use xxswapd
https://godbolt.org/z/QWkmnX
#include <altivec.h>
struct ret {
unsigned long int xl;
unsigned long int xh;
};
struct ret foo (vector double v)
{
union float_t {
unsigned long int x;
double d;
};
return (struct ret) { (union float_t) { .d = v[1] }.x,
(union float_t) { .d = v[0] }.x };
}
--
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/20190527/c7f783a2/attachment-0001.html>
More information about the llvm-bugs
mailing list