diff options
| author | Laytan <laytanlaats@hotmail.com> | 2025-07-31 22:01:17 +0200 |
|---|---|---|
| committer | Laytan <laytanlaats@hotmail.com> | 2025-07-31 22:01:17 +0200 |
| commit | 5527982c20b043ebfc15273a1718343a7f5669b8 (patch) | |
| tree | 9b6e293099cf2b919e6823a55ef02887fb1f19c5 /src/llvm_abi.cpp | |
| parent | f32ee28e6d90d15f5c5fb225c19b5292e76302ed (diff) | |
fix vec offset calculation
Diffstat (limited to 'src/llvm_abi.cpp')
| -rw-r--r-- | src/llvm_abi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/llvm_abi.cpp b/src/llvm_abi.cpp index 3666c74b5..b6ed395d9 100644 --- a/src/llvm_abi.cpp +++ b/src/llvm_abi.cpp @@ -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); |