Fix IR expectations for floating points

This commit is contained in:
Galder Zamarreño 2026-01-27 06:16:00 +01:00
parent 61b722d59a
commit 7f6f40c775

View File

@ -122,8 +122,21 @@ public class TestMinMaxIdentity {
let("arg2", arg2),
"""
@Test
@IR(counts = {IRNode.#op, "= 1"},
phase = CompilePhase.BEFORE_MACRO_EXPANSION)
""",
type.isFloating() ?
"""
@IR(counts = {IRNode.#op, "= 1"},
phase = CompilePhase.BEFORE_MACRO_EXPANSION,
applyIfCPUFeatureOr = {"avx", "true", "asimd", "true"})
@IR(counts = {IRNode.#op, "= 1"},
phase = CompilePhase.BEFORE_MACRO_EXPANSION,
applyIfPlatform = { "riscv64", "true" })
""" :
"""
@IR(counts = {IRNode.#op, "= 1"},
phase = CompilePhase.BEFORE_MACRO_EXPANSION)
""",
"""
@Arguments(values = {Argument.NUMBER_42, Argument.NUMBER_42})
public #type $test(#type #arg1, #type #arg2) {
int i;