SimEng
SimEng copied to clipboard
Regression Test issue when building SimEng : "fcvtzu" ARM instruction
Goals
As a end-user of SimEng, I wish to build SimEng and pass regression tests before installing it. So that I can trust my installation
Issue
Regression test for "fcvtzu" instruction failed for emulation simulatio-mode.
Failing tests link to Issue #367
From LastTest.log trace file :
[ FAILED ] AArch64/InstFloat.fcvtzu/emulation, where GetParam() = (0, "{}")
When looking in the file we have this failure for the test above :
...../SimEng/test/regression/aarch64/instructions/float.cc:615: Failure
Expected equality of these values:
(getGeneralRegister<uint64_t>(9))
Which is: 0
(18446744073709551615UL)
Which is: 18446744073709551615
Investigation Leads
Reproduction
Try to build SimEng with :
- State of the git : tag 0.9.6
- cmake version 3.21.4
- gcc 7.5.0
- LLVM precompiled version 14.0.5
- Commands to compile and run test before installation :
mkdir -p $SIMENG_BUILD_DIR
cmake -B $SIMENG_BUILD_DIR -S $SIMENG_SRC_DIR -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$SIMENG_HOME -DSIMENG_ENABLE_TESTS=ON -DSIMENG_USE_EXTERNAL_LLVM=ON -DLLVM_DIR=$LLVM_DIR
cmake --build $SIMENG_BUILD_DIR -j{nproc}
cmake --build $SIMENG_BUILD_DIR --target test
Potentially this has been fixed in the upcoming warnings PR #408. I will see if this fixes it on CentOS 7 as you mentioned this as your environment in #403.