| Simon Pilgrim | fc4d4b2 | 2016-07-19 13:35:11 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 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] |
| David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 6 | %tmp18 = load <4 x i16>, <4 x i16>* %__a, align 8 |
| Tim Northover | 3b0846e | 2014-05-24 12:50:23 +0000 | [diff] [blame] | 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 | |