source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/AArch64/arm64-i16-subreg-extract.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 371 bytes
Line 
1; RUN: llc < %s -march=arm64 -aarch64-neon-syntax=apple | FileCheck %s
2
3define 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>, <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
Note: See TracBrowser for help on using the repository browser.