yuyang-ok edited PR #5873 from issue5839
to main
:
This will try fix https://github.com/bytecodealliance/wasmtime/issues/5839
Thenormalize_cmp_value
should acceptIntCC
as extra parameter.
So we can know If shouldsigned extend
orunsigned extend
on int types.
Riscv64 can only compare int64 value.
yuyang-ok updated PR #5873 from issue5839
to main
.
yuyang-ok has marked PR #5873 as ready for review.
yuyang-ok updated PR #5873 from issue5839
to main
.
yuyang-ok updated PR #5873 from issue5839
to main
.
yuyang-ok updated PR #5873 from issue5839
to main
.
jameysharp submitted PR review.
jameysharp created PR review comment:
Very small style fix: let's add one space after the rule priority. Also, can't this have priority 1? I'm not sure why it's 2. I don't see any other rules with priority 1.
(rule 1 (normalize_cmp_value (fits_in_32 ity) r op)
jameysharp created PR review comment:
Since only one rule needs this conversion, I would prefer to do the conversion explicitly and remove the
(convert)
directive.(let ((a Reg (normalize_cmp_value in_ty a (intcc_to_extend_op cc))) (b Reg (normalize_cmp_value in_ty b (intcc_to_extend_op cc))))
jameysharp submitted PR review.
afonso360 submitted PR review.
yuyang-ok updated PR #5873 from issue5839
to main
.
yuyang-ok updated PR #5873 from issue5839
to main
.
yuyang-ok updated PR #5873 from issue5839
to main
.
jameysharp submitted PR review.
jameysharp has enabled auto merge for PR #5873.
jameysharp merged PR #5873.
Last updated: Dec 23 2024 at 12:05 UTC