Skip to content

std.int128 unittest failure with -O1 -mcpu=x86-64-v3 since #4892 #4916

@the-horo

Description

@the-horo

1.41.0-beta1 is failing one of its unittests for me:

$ ctest -V -R std.int128
UpdateCTestConfiguration  from :/home/happy/tmp/ldc-build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/home/happy/tmp/ldc-build/DartConfiguration.tcl
Test project /home/happy/tmp/ldc-build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 370
    Start 370: std.int128-shared

370: Test command: /home/happy/tmp/ldc-build/runtime/phobos2-test-runner-shared "std.int128"
370: Working Directory: /home/happy/tmp/ldc-build/runtime
370: Test timeout computed to be: 10000000
370: ****** FAIL release64 std.int128
370: core.exception.AssertError@std/int128.d(574): Int128(Cent(14, 0)) != Int128(Cent(15, 0))
370: ----------------
370: ??:? _d_assert_msg [0x7f703c761383]
370: ??:? pure nothrow @nogc @safe void std.int128.__unittest_L521_C1() [0x7f703d7507c7]
370: ??:? [0x7f703d751a8f]
370: ??:? [0x5632a7c2c697]
370: ??:? [0x5632a7c2c53f]
370: ??:? [0x5632a7c2c451]
370: ??:? runModuleUnitTests [0x7f703c784173]
370: ??:? void rt.dmain2._d_run_main2(char[][], ulong, extern (C) int function(char[][])*).runAll() [0x7f703c79f78a]
370: ??:? _d_run_main2 [0x7f703c79f5a6]
370: ??:? _d_run_main [0x7f703c79f38c]
370: ??:? [0x7f703c4bd16d]
370: ??:? __libc_start_main [0x7f703c4bd228]
370: ??:? [0x5632a7c2c1c4]
1/2 Test #370: std.int128-shared ................***Failed    0.01 sec
test 813
    Start 813: std.int128-debug-shared

813: Test command: /home/happy/tmp/ldc-build/runtime/phobos2-test-runner-debug-shared "std.int128"
813: Working Directory: /home/happy/tmp/ldc-build/runtime
813: Test timeout computed to be: 10000000
813: 0.000s PASS debug64 std.int128
2/2 Test #813: std.int128-debug-shared ..........   Passed    0.01 sec

The following tests passed:
	std.int128-debug-shared

50% tests passed, 1 tests failed out of 2

Total Test time (real) =   0.03 sec

The following tests FAILED:
	370 - std.int128-shared (Failed)
Errors while running CTest
Output from these tests are in: /home/happy/tmp/ldc-build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

I've configured the project with -DD_FLAGS_RELEASE="-O1;-mcpu=x86-64-v3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions