1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc < %s -mtriple=aarch64-none-linux-gnu -mattr=+neon | FileCheck %s --check-prefix=CHECK
4 declare <4 x half> @llvm.maximum.v4f16(<4 x half>, <4 x half>)
6 declare <2 x fp128> @llvm.maximum.v2f128(<2 x fp128>, <2 x fp128>)
9 define <4 x half> @fmaximum_v4f16(<4 x half> %x, <4 x half> %y) {
10 ; CHECK-LABEL: fmaximum_v4f16:
12 ; CHECK-NEXT: // kill: def $d1 killed $d1 def $q1
13 ; CHECK-NEXT: // kill: def $d0 killed $d0 def $q0
14 ; CHECK-NEXT: mov h2, v1.h[1]
15 ; CHECK-NEXT: mov h3, v0.h[1]
16 ; CHECK-NEXT: mov h4, v1.h[2]
17 ; CHECK-NEXT: mov h5, v0.h[2]
18 ; CHECK-NEXT: fcvt s6, h1
19 ; CHECK-NEXT: fcvt s7, h0
20 ; CHECK-NEXT: mov h1, v1.h[3]
21 ; CHECK-NEXT: fcvt s2, h2
22 ; CHECK-NEXT: fcvt s3, h3
23 ; CHECK-NEXT: fcvt s1, h1
24 ; CHECK-NEXT: fmax s2, s3, s2
25 ; CHECK-NEXT: fcvt s3, h4
26 ; CHECK-NEXT: fcvt s4, h5
27 ; CHECK-NEXT: fmax s5, s7, s6
28 ; CHECK-NEXT: mov h6, v0.h[3]
29 ; CHECK-NEXT: fmax s3, s4, s3
30 ; CHECK-NEXT: fcvt h2, s2
31 ; CHECK-NEXT: fcvt h0, s5
32 ; CHECK-NEXT: fcvt s4, h6
33 ; CHECK-NEXT: mov v0.h[1], v2.h[0]
34 ; CHECK-NEXT: fcvt h2, s3
35 ; CHECK-NEXT: fmax s1, s4, s1
36 ; CHECK-NEXT: mov v0.h[2], v2.h[0]
37 ; CHECK-NEXT: fcvt h1, s1
38 ; CHECK-NEXT: mov v0.h[3], v1.h[0]
39 ; CHECK-NEXT: // kill: def $d0 killed $d0 killed $q0
41 %r = call <4 x half> @llvm.maximum.v4f16(<4 x half> %x, <4 x half> %y)