1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s | FileCheck %s
4 target triple = "aarch64-linux"
6 define <4 x half> @test_famin_f16(<4 x half> %vn, <4 x half> %vm) #0 {
7 ; CHECK-LABEL: test_famin_f16:
9 ; CHECK-NEXT: famin v0.4h, v0.4h, v1.4h
11 %res = call <4 x half> @llvm.aarch64.neon.famin.v4f16(<4 x half> %vn, <4 x half> %vm)
15 define <8 x half> @test_famin2_f16(<8 x half> %vn, <8 x half> %vm) #0 {
16 ; CHECK-LABEL: test_famin2_f16:
18 ; CHECK-NEXT: famin v0.8h, v0.8h, v1.8h
20 %res = call <8 x half> @llvm.aarch64.neon.famin.v8f16(<8 x half> %vn, <8 x half> %vm)
24 define <2 x float> @test_famin_f32(<2 x float> %vn, <2 x float> %vm) #0 {
25 ; CHECK-LABEL: test_famin_f32:
27 ; CHECK-NEXT: famin v0.2s, v0.2s, v1.2s
29 %res = call <2 x float> @llvm.aarch64.neon.famin.v2f32(<2 x float> %vn, <2 x float> %vm)
33 define <4 x float> @test_famin2_f32(<4 x float> %vn, <4 x float> %vm) #0 {
34 ; CHECK-LABEL: test_famin2_f32:
36 ; CHECK-NEXT: famin v0.4s, v0.4s, v1.4s
38 %res = call <4 x float> @llvm.aarch64.neon.famin.v4f32(<4 x float> %vn, <4 x float> %vm)
42 define <2 x double> @test_famin_f64(<2 x double> %vn, <2 x double> %vm) #0 {
43 ; CHECK-LABEL: test_famin_f64:
45 ; CHECK-NEXT: famin v0.2d, v0.2d, v1.2d
47 %res = call <2 x double> @llvm.aarch64.neon.famin.v2f64(<2 x double> %vn, <2 x double> %vm)
51 define <4 x half> @test_famax_f16(<4 x half> %vn, <4 x half> %vm) #0 {
52 ; CHECK-LABEL: test_famax_f16:
54 ; CHECK-NEXT: famax v0.4h, v0.4h, v1.4h
56 %res = call <4 x half> @llvm.aarch64.neon.famax.v4f16(<4 x half> %vn, <4 x half> %vm)
60 define <8 x half> @test_famax2_f16(<8 x half> %vn, <8 x half> %vm) #0 {
61 ; CHECK-LABEL: test_famax2_f16:
63 ; CHECK-NEXT: famax v0.8h, v0.8h, v1.8h
65 %res = call <8 x half> @llvm.aarch64.neon.famax.v8f16(<8 x half> %vn, <8 x half> %vm)
69 define <2 x float> @test_famax_f32(<2 x float> %vn, <2 x float> %vm) #0 {
70 ; CHECK-LABEL: test_famax_f32:
72 ; CHECK-NEXT: famax v0.2s, v0.2s, v1.2s
74 %res = call <2 x float> @llvm.aarch64.neon.famax.v2f32(<2 x float> %vn, <2 x float> %vm)
78 define <4 x float> @test_famax2_f32(<4 x float> %vn, <4 x float> %vm) #0 {
79 ; CHECK-LABEL: test_famax2_f32:
81 ; CHECK-NEXT: famax v0.4s, v0.4s, v1.4s
83 %res = call <4 x float> @llvm.aarch64.neon.famax.v4f32(<4 x float> %vn, <4 x float> %vm)
87 define <2 x double> @test_famax_f64(<2 x double> %vn, <2 x double> %vm) #0 {
88 ; CHECK-LABEL: test_famax_f64:
90 ; CHECK-NEXT: famax v0.2d, v0.2d, v1.2d
92 %res = call <2 x double> @llvm.aarch64.neon.famax.v2f64(<2 x double> %vn, <2 x double> %vm)
96 attributes #0 = { "target-features"="+neon,+faminmax" }