fix vec offset calculation

This commit is contained in:
Laytan
2025-07-31 22:01:17 +02:00
parent f32ee28e6d
commit 5527982c20
+1 -1
View File
@@ -1028,7 +1028,7 @@ namespace lbAbiAmd64SysV {
unify(cls, ix + off/8, RegClass_Int);
break;
case LLVMHalfTypeKind:
unify(cls, ix + off/8, (off%8 == 2) ? RegClass_SSEHv : RegClass_SSEHs);
unify(cls, ix + off/8, (off%8 == 6) ? RegClass_SSEHv : RegClass_SSEHs);
break;
case LLVMFloatTypeKind:
unify(cls, ix + off/8, (off%8 == 4) ? RegClass_SSEFv : RegClass_SSEFs);