Stream: git-wasmtime

Topic: wasmtime / PR #4282 Cranelift filetests: Use `similar` to...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2022 at 18:57):

elliottt edited PR #4282 from trevor/diff-filetest-failures to main:

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

Improve the readability of filetest errors by diffing the expected and actual output. Whereas before you would have to either reconstruct the diff yourself or use CRANELIFT_TEST_BLESS=1 to see the differences with git, error messages now include a diff of the changes in output for codegen tests.

FAIL filetests/filetests/isa/x64/i128.clif: compile

Caused by:
    compilation of function on line 162 does not match
    the text expectation

    --- expected
    +++ actual
    @@ -16,86 +16,87 @@
       setnz   %al
       cmpq    %rdx, %rdi
       setnz   %r8b

    +  movq    %r8, rsp(0 + virtual offset)
       cmpq    %rcx, %rsi
       setnz   %r9b
       orq     %r8, %r9, %r8

    -  testq   $1, %r8
    -  setnz   %r8b
    -  movq    %r8, rsp(0 + virtual offset)
    +  movq    %r8, %r9
    +  andq    %r9, $1, %r9
    +  movq    %r9, rsp(0 + virtual offset)
       cmpq    %rcx, %rsi
    ...

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2022 at 19:27):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2022 at 19:27):

alexcrichton merged PR #4282.


Last updated: Nov 22 2024 at 16:03 UTC