swift
5462a8a7 - [rebranch] Accept both x86_fp80 printing forms in FileCheck patterns

Commit
48 days ago
[rebranch] Accept both x86_fp80 printing forms in FileCheck patterns LLVM 41c214f0b115 ("[AsmWriter] Change the output syntax of floating-point literals", #190649, present in LLVM 23 but not yet in LLVM 21) no longer prints FP constants in the legacy hexadecimal format; x87-extended values that are exactly representable in 6 decimal digits now print as decimals. Rather than pin the expectation to one LLVM version's output (tests cannot do C preprocessor version checks), make the two affected patterns accept either form: - IRGen/static_initializer.sil: x86_fp80 0xK3FFE8000000000000000 (0.5) -> x86_fp80 {{(5\.000000e-01|0xK3FFE8000000000000000)}} - stdlib/FloatingPointIR_FP80.swift: x86_fp80 0xK3FFF8000000000000000 (1.0) -> x86_fp80 {{(1\.000000e\+00|0xK3FFF8000000000000000)}} Both forms verified against the toolchain's actual -emit-ir output.
Author
Committer
Parents
Loading