https://bugs.llvm.org/show_bug.cgi?id=45806
Bug ID: 45806
Summary: Erroneous (?) error "invalid output size for
constraint '=Yz'" (AVX2)
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: n...@self-evident.org
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
Background: https://stackoverflow.com/q/61601902/
I am not certain whether this is a bug. However, this inline asm is accepted by
both GCC and ICC and produces the output I expect:
__m256i mask()
{
__m256i result;
__asm__ ("vpcmpeqd %%xmm0,%%xmm0,%%xmm0" : "=Yz" (result));
return result;
}
What I want is to operate on a YMM register using an XMM operation with a VEX
prefix so that the high lane of the YMM register gets cleared. Inline asm is
the only way I have found to get any compiler to emit this.
But Clang rejects this code with an "invalid output size" error (live example:
https://gcc.godbolt.org/z/vnqQfR).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs