]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/AArch64/arm64-i16-subreg-extract.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / AArch64 / arm64-i16-subreg-extract.ll
1 ; RUN: llc < %s -march=arm64 -aarch64-neon-syntax=apple | FileCheck %s
2
3 define i32 @foo(<4 x i16>* %__a) nounwind {
4 ; CHECK-LABEL: foo:
5 ; CHECK: umov.h w{{[0-9]+}}, v{{[0-9]+}}[0]
6   %tmp18 = load <4 x i16>* %__a, align 8
7   %vget_lane = extractelement <4 x i16> %tmp18, i32 0
8   %conv = zext i16 %vget_lane to i32
9   %mul = mul nsw i32 3, %conv
10   ret i32 %mul
11 }
12