Displaying 1 result from an estimated 1 matches for "rkruppe".
Did you mean:
kruppe
2018 Nov 17
2
error: couldn't allocate input reg for constraint '{xmm0}'
Here is some zig code:
pub fn setXmm0(comptime T: type, value: T) void {
comptime assert(builtin.arch == builtin.Arch.x86_64);
const aligned_value: T align(16) = value;
asm volatile (
\\movaps (%[ptr]), %%xmm0
:
: [ptr] "r" (&aligned_value)
: "xmm0"
);
}
I want to improve this and integrate more tightly with LLVM IR,