Hey, I'm working on an optimization pass that merges the comparisons in 
defaulted struct equality operators, the spaceship-* testcases all pass, except 
for spaceship-eq12.C:


FAIL: g++.dg/cpp2a/spaceship-eq12.C  -std=gnu++20 (test for excess errors)
FAIL: g++.dg/cpp2a/spaceship-eq12.C  -std=gnu++26 (test for excess errors)
FAIL: g++.dg/cpp2a/spaceship-eq12.C  -std=gnu++23 (test for excess errors)

                === g++ Summary ===

# of expected passes            209
# of unexpected failures        3
/home/tdebock/gcc-vectorize/gcc/objdir/gcc/xg++  version 16.0.0 20250704 
(experimental) (GCC)


This confuses me, since when compiling the testcase with, and without the 
optimization enabled and running them, they both return the same value.

This is not surprising since they are the exact same binaries:

> sha1sum test_optimization_off
c45352213dd39a6a3b32d3549b40aeb9a17db464  test_optimization_off
> sha1sum test_optimization_on
c45352213dd39a6a3b32d3549b40aeb9a17db464  test_optimization_on


The only thing the optimization does on this testcase is, during the SSA pass, 
switch the != operators on component refs out for ==, switching the basic 
blocks' edges as well.

Does DejaGnu test some attributes about the intermediate languages as well, 
what is going on here?

This e-mail and any attachments may contain information that is confidential 
and proprietary and otherwise protected from disclosure. If you are not the 
intended recipient of this e-mail, do not read, duplicate or redistribute it by 
any means. Please immediately delete it and any attachments and notify the 
sender that you have received it by mistake. Unintended recipients are 
prohibited from taking action on the basis of information in this e-mail or any 
attachments. The DRW Companies make no representations that this e-mail or any 
attachments are free of computer viruses or other defects.

Reply via email to