Cranelift: fix filetest now failing after merge to main. (#4120)
This test was added between the last CI run on #4088 and its merge to main, and the changes in #4088 (use of constants directly in instruction via load from constant pool, rather than from a register initialized by a separate instruction) cause it to fail now. This PR alters the test to be invariant to regalloc and argument decisions during lowering, as the test is really checking (per the comment) that we get two cmoves without an intervening move. As such, it just matches the instruction opcodes, irrespective of the arguments.
This commit is contained in:
@@ -9,8 +9,8 @@ block0(v0: f32, v1: f32):
|
|||||||
v3 = iconst.i32 1
|
v3 = iconst.i32 1
|
||||||
v4 = iconst.i32 0
|
v4 = iconst.i32 0
|
||||||
v5 = select v2, v3, v4
|
v5 = select v2, v3, v4
|
||||||
; check: ucomiss %xmm0, %xmm1
|
; check: ucomiss
|
||||||
; nextln: cmovnzl %r8d, %eax, %eax
|
; nextln: cmovnzl
|
||||||
; nextln: cmovpl %r8d, %eax, %eax
|
; nextln: cmovpl
|
||||||
return v5
|
return v5
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user