Skip to content

Commit 9fcc1c5

Browse files
authored
Fix CVTSI2SS for recent update of Intel XED (#462)
* Fix CVTSI2SS for recent update of Intel XED Note that it may be needed to build XED from the latest revision, rather than using the cached build from docker images. * CVTSI2SD is also changed
1 parent bf69d9c commit 9fcc1c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/Arch/X86/Semantics/CONVERT.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,18 @@ IF_AVX(DEF_ISEL(VCVTSD2SS_XMMdq_XMMdq_XMMq) = VCVTSD2SS<V128>;)
333333

334334
namespace {
335335
template <typename S2>
336-
DEF_SEM(CVTSI2SS, V128W dst_src1, S2 src2) {
337-
auto src1_vec = FReadV32(dst_src1);
336+
DEF_SEM(CVTSI2SS, V128W dst, V128 src1, S2 src2) {
337+
auto src1_vec = FReadV32(src1);
338338
auto conv_val = Float32(Signed(Read(src2)));
339-
FWriteV32(dst_src1, FInsertV32(src1_vec, 0, conv_val));
339+
FWriteV32(dst, FInsertV32(src1_vec, 0, conv_val));
340340
return memory;
341341
}
342342

343343
template <typename S2>
344-
DEF_SEM(CVTSI2SD, V128W dst_src1, S2 src2) {
345-
auto src1_vec = FReadV64(dst_src1);
344+
DEF_SEM(CVTSI2SD, V128W dst, V128 src1, S2 src2) {
345+
auto src1_vec = FReadV64(src1);
346346
auto conv_val = Float64(Signed(Read(src2)));
347-
FWriteV64(dst_src1, FInsertV64(src1_vec, 0, conv_val));
347+
FWriteV64(dst, FInsertV64(src1_vec, 0, conv_val));
348348
return memory;
349349
}
350350

0 commit comments

Comments
 (0)