Skip to content

LLVM 17 regression: floating point behavior tests on arm #16848

@andrewrk

Description

@andrewrk

zig version: 0.12.0-dev.116+4cc2544cd (llvm17 branch)

$ zig build test-behavior -fqemu
run test behavior-arm-linux-musleabihf-Debug-libc: error: 'test.@mulAdd f80' failed: /home/andy/misc/zig/lib/std/testing.zig:519:14: 0x9a44f in expect (test)
    if (!ok) return error.TestUnexpectedResult;
             ^
/home/andy/misc/zig/test/behavior/muladd.zig:69:5: 0x1cc22b in testMulAdd80 (test)
    try expect(@mulAdd(f80, a, b, c) == 20);
    ^
/home/andy/misc/zig/test/behavior/muladd.zig:62:5: 0x1cc26f in test.@mulAdd f80 (test)
    try testMulAdd80();
    ^
run test behavior-arm-linux-musleabihf-Debug-libc: error: 'test.@mulAdd f128' failed: /home/andy/misc/zig/lib/std/testing.zig:519:14: 0x9a44f in expect (test)
    if (!ok) return error.TestUnexpectedResult;
             ^
/home/andy/misc/zig/test/behavior/muladd.zig:89:5: 0x1cc38f in testMulAdd128 (test)
    try expect(@mulAdd(f128, a, b, c) == 20);
    ^
/home/andy/misc/zig/test/behavior/muladd.zig:82:5: 0x1cc3d3 in test.@mulAdd f128 (test)
    try testMulAdd128();
    ^
run test behavior-arm-linux-musleabihf-Debug-libc: error: 'test.float widening f16 to f128' failed: m
/home/andy/misc/zig/lib/std/testing.zig:519:14: 0x9a44f in expect (test)
    if (!ok) return error.TestUnexpectedResult;
             ^
/home/andy/misc/zig/test/behavior/widening.zig:73:5: 0x21bba3 in test.float widening f16 to f128 (test)
    try expect(x == y);
    ^
run test behavior-arm-linux-musleabihf-Debug-libc: error: while executing test 'test.no clobbering happened', the following test command failed:
qemu-arm /home/andy/misc/zig/zig-cache/o/cd445b01a9147e3ed51291a504dc55dc/test --listen=- 

Next step is to file an upstream bug report with an LLVM IR reduction. Hopefully it can get fixed before the final 17 tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-arm32-bit ARMbugObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions