1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -march=hexagon < %s | FileCheck %s
4 define <64 x half> @f0(<64 x float> %a0) #0 {
6 ; CHECK: // %bb.0: // %b0
8 ; CHECK-NEXT: v2 = vxor(v2,v2)
11 ; CHECK-NEXT: v0.qf32 = vadd(v0.sf,v2.sf)
14 ; CHECK-NEXT: v1.qf32 = vadd(v1.sf,v2.sf)
17 ; CHECK-NEXT: v0.hf = v1:0.qf32
20 ; CHECK-NEXT: v0.h = vdeal(v0.h)
21 ; CHECK-NEXT: jumpr r31
24 %v0 = fptrunc <64 x float> %a0 to <64 x half>
28 define <64 x float> @f1(<64 x half> %a0) #0 {
30 ; CHECK: // %bb.0: // %b0
32 ; CHECK-NEXT: r0 = #15360
33 ; CHECK-NEXT: r7 = #-4
36 ; CHECK-NEXT: v1.h = vsplat(r0)
39 ; CHECK-NEXT: v1:0.qf32 = vmpy(v0.hf,v1.hf)
42 ; CHECK-NEXT: v0.sf = v0.qf32
45 ; CHECK-NEXT: v1.sf = v1.qf32
48 ; CHECK-NEXT: v1:0 = vshuff(v1,v0,r7)
49 ; CHECK-NEXT: jumpr r31
52 %v0 = fpext <64 x half> %a0 to <64 x float>
56 define <64 x half> @f2(<64 x float> %a0) #1 {
58 ; CHECK: // %bb.0: // %b0
60 ; CHECK-NEXT: v0.hf = vcvt(v1.sf,v0.sf)
63 ; CHECK-NEXT: v0.h = vdeal(v0.h)
64 ; CHECK-NEXT: jumpr r31
67 %v0 = fptrunc <64 x float> %a0 to <64 x half>
71 define <64 x float> @f3(<64 x half> %a0) #1 {
73 ; CHECK: // %bb.0: // %b0
75 ; CHECK-NEXT: v0.h = vshuff(v0.h)
78 ; CHECK-NEXT: v1:0.sf = vcvt(v0.hf)
79 ; CHECK-NEXT: jumpr r31
82 %v0 = fpext <64 x half> %a0 to <64 x float>
86 attributes #0 = { nounwind "target-features"="+hvxv69,+hvx-length128b,+hvx-qfloat" }
87 attributes #1 = { nounwind "target-features"="+hvxv69,+hvx-length128b,+hvx-ieee-fp,-hvx-qfloat" }