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 i16> @f0(<64 x half> %a0) #0 {
6 ; CHECK: // %bb.0: // %b0
8 ; CHECK-NEXT: v0.h = vcvt(v0.hf)
9 ; CHECK-NEXT: jumpr r31
12 %v0 = fptosi <64 x half> %a0 to <64 x i16>
16 define <64 x i16> @f1(<64 x half> %a0) #0 {
18 ; CHECK: // %bb.0: // %b0
20 ; CHECK-NEXT: v0.uh = vcvt(v0.hf)
21 ; CHECK-NEXT: jumpr r31
24 %v0 = fptoui <64 x half> %a0 to <64 x i16>
28 define <128 x i8> @f2(<128 x half> %a0) #0 {
30 ; CHECK: // %bb.0: // %b0
32 ; CHECK-NEXT: v0.b = vcvt(v1.hf,v0.hf)
33 ; CHECK-NEXT: jumpr r31
36 %v0 = fptosi <128 x half> %a0 to <128 x i8>
40 define <128 x i8> @f3(<128 x half> %a0) #0 {
42 ; CHECK: // %bb.0: // %b0
44 ; CHECK-NEXT: v0.ub = vcvt(v1.hf,v0.hf)
45 ; CHECK-NEXT: jumpr r31
48 %v0 = fptoui <128 x half> %a0 to <128 x i8>
52 define <64 x half> @f4(<64 x i16> %a0) #0 {
54 ; CHECK: // %bb.0: // %b0
56 ; CHECK-NEXT: v0.hf = vcvt(v0.h)
57 ; CHECK-NEXT: jumpr r31
60 %v0 = sitofp <64 x i16> %a0 to <64 x half>
64 define <64 x half> @f5(<64 x i16> %a0) #0 {
66 ; CHECK: // %bb.0: // %b0
68 ; CHECK-NEXT: v0.hf = vcvt(v0.uh)
69 ; CHECK-NEXT: jumpr r31
72 %v0 = uitofp <64 x i16> %a0 to <64 x half>
76 define <128 x half> @f6(<128 x i8> %a0) #0 {
78 ; CHECK: // %bb.0: // %b0
80 ; CHECK-NEXT: v1:0.hf = vcvt(v0.b)
81 ; CHECK-NEXT: jumpr r31
84 %v0 = sitofp <128 x i8> %a0 to <128 x half>
88 define <128 x half> @f7(<128 x i8> %a0) #0 {
90 ; CHECK: // %bb.0: // %b0
92 ; CHECK-NEXT: v1:0.hf = vcvt(v0.ub)
93 ; CHECK-NEXT: jumpr r31
96 %v0 = uitofp <128 x i8> %a0 to <128 x half>
100 attributes #0 = { nounwind "target-features"="+hvxv69,+hvx-length128b,+hvx-ieee-fp,-hvx-qfloat" }