<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ppc64le clang fails with couldn't allocate output register for constraint"
href="https://bugs.llvm.org/show_bug.cgi?id=38886">38886</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ppc64le clang fails with couldn't allocate output register for constraint
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>joel@jms.id.au
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20856" name="attach_20856" title="preprocesed source for lib/raid6/vpermxor1.c">attachment 20856</a> <a href="attachment.cgi?id=20856&action=edit" title="preprocesed source for lib/raid6/vpermxor1.c">[details]</a></span>
preprocesed source for lib/raid6/vpermxor1.c
When building lib/raid6/vpermxor1.c from the Linux kernel:
lib/raid6/vpermxor1.c:64:8: error: couldn't allocate output register for
constraint 'v'
asm(VPERMXOR(%0,%1,%2,%3) : "=v"(wq0) : "v"(gf_high),
"v"(gf_low), "v"(wq0));
^
clang-8 -Wp,-MD,lib/raid6/.vpermxor1.o.d -nostdinc -isystem
/scratch/joel/llvm-build/lib/clang/8.0.0/include -I./arch/powerpc/include
-I./arch/powerpc/include/generated -I./include -I./arch/powerpc/include/uapi
-I./arch/powerpc/include/generated/uapi -I./include/uapi
-I./include/generated/uapi -include ./include/linux/kconfig.h -include
./include/linux/compiler_types.h -D__KERNEL__ -Iarch/powerpc -DHAVE_AS_ATHIGH=1
-Qunused-arguments -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -fshort-wchar
-Werror-implicit-function-declaration -Wno-format-security -std=gnu89
-no-integrated-as -fno-PIE -mlittle-endian -m64 -msoft-float -pipe
-Iarch/powerpc -mabi=elfv2 -mcmodel=medium -mcpu=power8 -mtune=power9
-mno-altivec -mno-vsx -funit-at-a-time -fno-dwarf2-cfi-asm -Wa,-maltivec
-Wa,-mpower8 -mlittle-endian -fno-delete-null-pointer-checks -O2
-Wframe-larger-than=2048 -fno-stack-protector -Wno-format-invalid-specifier
-Wno-gnu -Wno-address-of-packed-member -Wno-tautological-compare
-mno-global-merge -Wno-unused-const-variable -fomit-frame-pointer
-Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow
-fno-merge-all-constants -fno-stack-check -Werror=implicit-int
-Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types
-Wno-initializer-overrides -Wno-unused-value -Wno-format -Wno-sign-compare
-Wno-format-zero-length -Wno-uninitialized -maltivec -mabi=altivec -DMODULE
-mcmodel=large -DKBUILD_BASENAME='"vpermxor1"' -DKBUILD_MODNAME='"raid6_pq"'
-c -o vpermxor1.o vpermxor1.i
GCC can build the same code. clang can compile a simple program that uses
vpermxor, so I suspect the issue is related to the other operations in the for
loop.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>