aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/neon_shift.ll
blob: 3c09358cf138c0ef0092b4aa6eeaeca445bf2d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s

; <rdar://problem/9055897>
define <4 x i16> @t1(<4 x i32> %a) nounwind {
entry:
; CHECK: vqrshrn.s32 d{{[0-9]+}}, q{{[0-9]*}}, #13
  %x = tail call <4 x i16> @llvm.arm.neon.vqrshiftns.v4i16(<4 x i32> %a, <4 x i32> <i32 -13, i32 -13, i32 -13, i32 -13>)
  ret <4 x i16> %x
}

declare <4 x i16> @llvm.arm.neon.vqrshiftns.v4i16(<4 x i32>, <4 x i32>) nounwind readnone