Skip to content

Commit 0c12114

Browse files
committed
Fixup test
1 parent 46d1c16 commit 0c12114

File tree

2 files changed

+9
-334
lines changed

2 files changed

+9
-334
lines changed

llvm/test/Transforms/Attributor/nofpclass.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2681,6 +2681,15 @@ define <vscale x 4 x float> @scalable_splat_zero() {
26812681
ret <vscale x 4 x float> zeroinitializer
26822682
}
26832683

2684+
; Verify we do not derive 'nofpclass(inf zero sub norm)' for the argument __x.
2685+
; See https://github.com/llvm/llvm-project/issues/78507
2686+
2687+
define double @call_abs(double noundef %__x) {
2688+
entry:
2689+
%abs = tail call double @llvm.fabs.f64(double %__x)
2690+
ret double %abs
2691+
}
2692+
26842693
declare i64 @_Z13get_global_idj(i32 noundef)
26852694

26862695
attributes #0 = { "denormal-fp-math"="preserve-sign,preserve-sign" }

0 commit comments

Comments
 (0)