Skip to content

[LoongArch] SPEC2017/SPEC2006 fp tests failed with "-Ofast -march=la664" #186328

@azuresky01

Description

@azuresky01

@SixWeining @heiher @wangleiat

Tested OS: Debian sid / Loongnix 25.1 rc1
Tested CPUs: Loongson 3A6000 / 3B6000
Tested LLVM versions: 23.0.0 git (main branch) / 22.1.0

Most SPEC2017 fp tests and some SPEC2006 fp tests failed during the runtime with the optimization setting "-Ofast -march=la664" or "-O3 -ffast-math -march=la664". With "-O3 -march=la664" or "-Ofast -march=la464" or "-O3 -ffast-math -march=la464" it is OK for all these fp tests.

Test results with "-Ofast -march=la664" or "-O3 -ffast-math -march=la664" for test and train sizes:

SPEC2017 fp tests:
Test	    Size_failed	Error_message
507.cactuBSSN_r test	Miscompare 
508.namd_r      test	copy 0 non-zero return code (exit code=246, signal=0)
511.povray_r    test	Miscompare
521.wrf_r       test	Miscompare
526.blender_r   test	Miscompare
527.cam4_r      test	copy 0 non-zero return code (exit code=139, signal=0)
544.nab_r       test	Miscompare
549.fotonik3d_r test	Miscompare
554.roms_r      test	Miscompare
607.cactuBSSN_s test	Miscompare
621.wrf_s       test	Miscompare
627.cam4_s      test	copy 0 non-zero return code (exit code=139, signal=0)
628.pop2_s      train	copy 0 non-zero return code (exit code=233, signal=0)
644.nab_s       test	Miscompare
649.fotonik3d_s test	Miscompare
654.roms_s      test	Miscompare

SPEC2006 fp tests:
Test	Size_failed	Error_message
416.gamess   test	Miscompare
435.gromacs  test	(freezing)
444.namd     test	copy 0 non-zero return code (exit code=118, signal=0)
447.dealII   test	Miscompare
453.povray   test	Miscompare
459.GemsFDTD test	Miscompare
465.tonto    test	Miscompare

Sample config and xml files for LLVM 23.0.0 git:
SPEC2017:
my_llvmgit_test_spec2017.cfg.txt (remove the ".txt" suffix), llvm-git.xml

SPEC2006:
my_llvmgit_spec2006.cfg.txt (remove the ".txt" suffix), llvm_git_06.xml

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions