Skip to content

llvm-test-suite SingleSource/UnitTests/Vectorizer/fmax-reduction miscompiles #166912

@Meinersbur

Description

@Meinersbur

https://github.com/llvm/llvm-test-suite/blob/main/SingleSource/UnitTests/Vectorizer/fmax-reduction.cpp on x86-64

Expected output:

Checking fmaxnum_start_neg_2
Checking fmaxnum_start_min
Checking fmaxnum_start_denorm_min
Checking fmaxnum_start_is_nan
Checking fmax_non_strict_start_neg_2
Checking fmax_cmp_max_gt_start_neg_2
Checking fmax_cmp_max_lt_start_neg_2
Checking fmax_cmp_max_lt_start_denorm_min
Checking fmax_cmp_max_lt_start_neg_nan
exit 0

Actual output:

Checking fmaxnum_start_neg_2
Miscompare signed-zeros: -0 != 0
exit 1

The regression occured somewhere between clang 20 and clang 21:
https://godbolt.org/z/rnfqzc1Yj

@fhahn

Metadata

Metadata

Assignees

Labels

backend:X86questionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!regression:21Regression in 21 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions