Skip to content

Commit 30e6ee0

Browse files
committed
Add Vector test case
1 parent 062db54 commit 30e6ee0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
22
; RUN: llc --mtriple=aarch64-linux-gnu < %s | FileCheck %s
33

4-
define nofpclass(nzero) float @f(float noundef nofpclass(nan) %a, float noundef nofpclass(nan) %b) {
4+
define nofpclass(nzero) float @f(float nofpclass(nan) %a, float nofpclass(nan) %b) {
55
; CHECK-LABEL: f:
66
; CHECK: // %bb.0: // %entry
77
; CHECK-NEXT: fmaxnm s0, s0, s1
@@ -10,3 +10,13 @@ entry:
1010
%cond = tail call float @llvm.maximumnum.f32(float %a, float %b)
1111
ret float %cond
1212
}
13+
14+
define <4 x float> @fv4f32(<4 x float> nofpclass(nan) %a, <4 x float> nofpclass(nan) %b) {
15+
; CHECK-LABEL: fv4f32:
16+
; CHECK: // %bb.0: // %entry
17+
; CHECK-NEXT: fmaxnm v0.4s, v0.4s, v1.4s
18+
; CHECK-NEXT: ret
19+
entry:
20+
%c = call <4 x float> @llvm.maximumnum.v4f32(<4 x float> %a, <4 x float> %b)
21+
ret <4 x float> %c
22+
}

0 commit comments

Comments
 (0)