Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors from the Testsuite GCC 13.2.0 #186

Open
JPeterMugaas opened this issue Feb 9, 2024 · 3 comments
Open

Errors from the Testsuite GCC 13.2.0 #186

JPeterMugaas opened this issue Feb 9, 2024 · 3 comments
Labels
complier Issue related to compiler codegen

Comments

@JPeterMugaas
Copy link
Contributor

I was running the testsuite on GNU GCC 13.2.0 and I got these errors:

***************
*************
howdy, from the PC
        Testing DirectX Math (aka XNAMath 3) 318
        SSE_INTRINSICS
Warning: Couldn't open math2.dat. f==0

[..]
XMVectorPermute: 3 3 6 6 = 0.000000 0.000000 -0.000000 -0.000000 ... 3.000000 3.000000 6.000000 6.00
0000
XMVectorPermute: 3 2 4 2 = 0.000000 0.000000 0.000000 0.000000 ... 3.000000 2.000000 4.000000 2.0000
00
XMVectorPermute: 1 2 7 1 = -14743.487305 0.000000 0.000000 -14743.487305 ... 1.000000 2.000000 7.000
000 1.000000
XMVectorPermute: 2 4 2 2 = 0.000000 0.000000 0.000000 0.000000 ... 2.000000 4.000000 2.000000 2.0000
00
XMVectorPermute: 4 2 4 5 = 0.000000 0.000000 0.000000 0.000000 ... 4.000000 2.000000 4.000000 5.0000
00
XMVectorPermute: 4 4 7 2 = 0.000000 0.000000 0.000000 0.000000 ... 4.000000 4.000000 7.000000 2.0000
00
XMVectorPermute: 4 5 4 4 = 0.000000 0.000000 0.000000 0.000000 ... 4.000000 5.000000 4.000000 4.0000
00
XMVectorPermute: 7 1 3 7 = 0.000000 -14743.487305 0.000000 0.000000 ... 7.000000 1.000000 3.000000 7
.000000
   test 321 (XMVectorPermute) FAILED

The tests run fine with Clang.

@walbourn walbourn added the complier Issue related to compiler codegen label Feb 9, 2024
@walbourn
Copy link
Member

walbourn commented Feb 9, 2024

Is this in DEBUG or RELEASE builds?

The DirectXMath library exercises a lot of intrinsics code-gen, so it has definitely found a lot of compiler bugs over the years.

@JPeterMugaas
Copy link
Contributor Author

Release

@walbourn
Copy link
Member

This is pretty clearly a compiler optimization bug. Perhaps you should file it with the GNUC/MinGW folks and link the report here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complier Issue related to compiler codegen
Projects
None yet
Development

No branches or pull requests

2 participants