1
; RUN: llc -mtriple armv7 %s -o - | FileCheck %s
4
define float @f(<4 x i16>* nocapture %in) {
7
%1 = load <4 x i16>* %in
9
%2 = uitofp <4 x i16> %1 to <4 x float>
10
%3 = extractelement <4 x float> %2, i32 0
11
%4 = extractelement <4 x float> %2, i32 1
12
%5 = extractelement <4 x float> %2, i32 2
15
%6 = fadd float %3, %4
16
%7 = fadd float %6, %5
22
define float @g(<4 x i8>* nocapture %in) {
26
%1 = load <4 x i8>* %in
28
%2 = uitofp <4 x i8> %1 to <4 x float>
29
%3 = extractelement <4 x float> %2, i32 0
30
%4 = extractelement <4 x float> %2, i32 1
31
%5 = extractelement <4 x float> %2, i32 2
34
%6 = fadd float %3, %4
35
%7 = fadd float %6, %5
41
define <4 x i8> @h(<4 x float> %v) {
42
; CHECK: vcvt.{{[us]}}32.f32
44
%1 = fptoui <4 x float> %v to <4 x i8>