2009-10-09 07:14:48 +02:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
|
2009-06-23 01:27:02 +02:00
|
|
|
|
|
|
|
define <8 x i8> @vsras8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsras8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
|
|
|
%tmp3 = ashr <8 x i8> %tmp2, < i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8 >
|
|
|
|
%tmp4 = add <8 x i8> %tmp1, %tmp3
|
|
|
|
ret <8 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vsras16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsras16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
|
|
|
%tmp3 = ashr <4 x i16> %tmp2, < i16 16, i16 16, i16 16, i16 16 >
|
|
|
|
%tmp4 = add <4 x i16> %tmp1, %tmp3
|
|
|
|
ret <4 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vsras32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsras32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
|
|
|
%tmp3 = ashr <2 x i32> %tmp2, < i32 32, i32 32 >
|
|
|
|
%tmp4 = add <2 x i32> %tmp1, %tmp3
|
|
|
|
ret <2 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <1 x i64> @vsras64(<1 x i64>* %A, <1 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsras64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <1 x i64>* %A
|
|
|
|
%tmp2 = load <1 x i64>* %B
|
|
|
|
%tmp3 = ashr <1 x i64> %tmp2, < i64 64 >
|
|
|
|
%tmp4 = add <1 x i64> %tmp1, %tmp3
|
|
|
|
ret <1 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vsraQs8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQs8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
|
|
|
%tmp3 = ashr <16 x i8> %tmp2, < i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8 >
|
|
|
|
%tmp4 = add <16 x i8> %tmp1, %tmp3
|
|
|
|
ret <16 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vsraQs16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQs16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
|
|
|
%tmp3 = ashr <8 x i16> %tmp2, < i16 16, i16 16, i16 16, i16 16, i16 16, i16 16, i16 16, i16 16 >
|
|
|
|
%tmp4 = add <8 x i16> %tmp1, %tmp3
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vsraQs32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQs32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
|
|
|
%tmp3 = ashr <4 x i32> %tmp2, < i32 32, i32 32, i32 32, i32 32 >
|
|
|
|
%tmp4 = add <4 x i32> %tmp1, %tmp3
|
|
|
|
ret <4 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i64> @vsraQs64(<2 x i64>* %A, <2 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQs64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.s64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i64>* %A
|
|
|
|
%tmp2 = load <2 x i64>* %B
|
|
|
|
%tmp3 = ashr <2 x i64> %tmp2, < i64 64, i64 64 >
|
|
|
|
%tmp4 = add <2 x i64> %tmp1, %tmp3
|
|
|
|
ret <2 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i8> @vsrau8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsrau8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
|
|
|
%tmp3 = lshr <8 x i8> %tmp2, < i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8 >
|
|
|
|
%tmp4 = add <8 x i8> %tmp1, %tmp3
|
|
|
|
ret <8 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vsrau16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsrau16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
|
|
|
%tmp3 = lshr <4 x i16> %tmp2, < i16 16, i16 16, i16 16, i16 16 >
|
|
|
|
%tmp4 = add <4 x i16> %tmp1, %tmp3
|
|
|
|
ret <4 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vsrau32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsrau32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
|
|
|
%tmp3 = lshr <2 x i32> %tmp2, < i32 32, i32 32 >
|
|
|
|
%tmp4 = add <2 x i32> %tmp1, %tmp3
|
|
|
|
ret <2 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <1 x i64> @vsrau64(<1 x i64>* %A, <1 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsrau64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <1 x i64>* %A
|
|
|
|
%tmp2 = load <1 x i64>* %B
|
|
|
|
%tmp3 = lshr <1 x i64> %tmp2, < i64 64 >
|
|
|
|
%tmp4 = add <1 x i64> %tmp1, %tmp3
|
|
|
|
ret <1 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vsraQu8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQu8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
|
|
|
%tmp3 = lshr <16 x i8> %tmp2, < i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8 >
|
|
|
|
%tmp4 = add <16 x i8> %tmp1, %tmp3
|
|
|
|
ret <16 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vsraQu16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQu16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
|
|
|
%tmp3 = lshr <8 x i16> %tmp2, < i16 16, i16 16, i16 16, i16 16, i16 16, i16 16, i16 16, i16 16 >
|
|
|
|
%tmp4 = add <8 x i16> %tmp1, %tmp3
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vsraQu32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQu32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
|
|
|
%tmp3 = lshr <4 x i32> %tmp2, < i32 32, i32 32, i32 32, i32 32 >
|
|
|
|
%tmp4 = add <4 x i32> %tmp1, %tmp3
|
|
|
|
ret <4 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i64> @vsraQu64(<2 x i64>* %A, <2 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vsraQu64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vsra.u64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i64>* %A
|
|
|
|
%tmp2 = load <2 x i64>* %B
|
|
|
|
%tmp3 = lshr <2 x i64> %tmp2, < i64 64, i64 64 >
|
|
|
|
%tmp4 = add <2 x i64> %tmp1, %tmp3
|
|
|
|
ret <2 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i8> @vrsras8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsras8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
|
|
|
%tmp3 = call <8 x i8> @llvm.arm.neon.vrshifts.v8i8(<8 x i8> %tmp2, <8 x i8> < i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8 >)
|
|
|
|
%tmp4 = add <8 x i8> %tmp1, %tmp3
|
|
|
|
ret <8 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vrsras16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsras16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
|
|
|
%tmp3 = call <4 x i16> @llvm.arm.neon.vrshifts.v4i16(<4 x i16> %tmp2, <4 x i16> < i16 -16, i16 -16, i16 -16, i16 -16 >)
|
|
|
|
%tmp4 = add <4 x i16> %tmp1, %tmp3
|
|
|
|
ret <4 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vrsras32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsras32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
|
|
|
%tmp3 = call <2 x i32> @llvm.arm.neon.vrshifts.v2i32(<2 x i32> %tmp2, <2 x i32> < i32 -32, i32 -32 >)
|
|
|
|
%tmp4 = add <2 x i32> %tmp1, %tmp3
|
|
|
|
ret <2 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <1 x i64> @vrsras64(<1 x i64>* %A, <1 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsras64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <1 x i64>* %A
|
|
|
|
%tmp2 = load <1 x i64>* %B
|
|
|
|
%tmp3 = call <1 x i64> @llvm.arm.neon.vrshifts.v1i64(<1 x i64> %tmp2, <1 x i64> < i64 -64 >)
|
|
|
|
%tmp4 = add <1 x i64> %tmp1, %tmp3
|
|
|
|
ret <1 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i8> @vrsrau8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsrau8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
|
|
|
%tmp3 = call <8 x i8> @llvm.arm.neon.vrshiftu.v8i8(<8 x i8> %tmp2, <8 x i8> < i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8 >)
|
|
|
|
%tmp4 = add <8 x i8> %tmp1, %tmp3
|
|
|
|
ret <8 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vrsrau16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsrau16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
|
|
|
%tmp3 = call <4 x i16> @llvm.arm.neon.vrshiftu.v4i16(<4 x i16> %tmp2, <4 x i16> < i16 -16, i16 -16, i16 -16, i16 -16 >)
|
|
|
|
%tmp4 = add <4 x i16> %tmp1, %tmp3
|
|
|
|
ret <4 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vrsrau32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsrau32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
|
|
|
%tmp3 = call <2 x i32> @llvm.arm.neon.vrshiftu.v2i32(<2 x i32> %tmp2, <2 x i32> < i32 -32, i32 -32 >)
|
|
|
|
%tmp4 = add <2 x i32> %tmp1, %tmp3
|
|
|
|
ret <2 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <1 x i64> @vrsrau64(<1 x i64>* %A, <1 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsrau64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <1 x i64>* %A
|
|
|
|
%tmp2 = load <1 x i64>* %B
|
|
|
|
%tmp3 = call <1 x i64> @llvm.arm.neon.vrshiftu.v1i64(<1 x i64> %tmp2, <1 x i64> < i64 -64 >)
|
|
|
|
%tmp4 = add <1 x i64> %tmp1, %tmp3
|
|
|
|
ret <1 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vrsraQs8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQs8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
|
|
|
%tmp3 = call <16 x i8> @llvm.arm.neon.vrshifts.v16i8(<16 x i8> %tmp2, <16 x i8> < i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8 >)
|
|
|
|
%tmp4 = add <16 x i8> %tmp1, %tmp3
|
|
|
|
ret <16 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vrsraQs16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQs16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
|
|
|
%tmp3 = call <8 x i16> @llvm.arm.neon.vrshifts.v8i16(<8 x i16> %tmp2, <8 x i16> < i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16 >)
|
|
|
|
%tmp4 = add <8 x i16> %tmp1, %tmp3
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vrsraQs32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQs32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
|
|
|
%tmp3 = call <4 x i32> @llvm.arm.neon.vrshifts.v4i32(<4 x i32> %tmp2, <4 x i32> < i32 -32, i32 -32, i32 -32, i32 -32 >)
|
|
|
|
%tmp4 = add <4 x i32> %tmp1, %tmp3
|
|
|
|
ret <4 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i64> @vrsraQs64(<2 x i64>* %A, <2 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQs64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.s64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i64>* %A
|
|
|
|
%tmp2 = load <2 x i64>* %B
|
|
|
|
%tmp3 = call <2 x i64> @llvm.arm.neon.vrshifts.v2i64(<2 x i64> %tmp2, <2 x i64> < i64 -64, i64 -64 >)
|
|
|
|
%tmp4 = add <2 x i64> %tmp1, %tmp3
|
|
|
|
ret <2 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vrsraQu8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQu8:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u8
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
|
|
|
%tmp3 = call <16 x i8> @llvm.arm.neon.vrshiftu.v16i8(<16 x i8> %tmp2, <16 x i8> < i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8, i8 -8 >)
|
|
|
|
%tmp4 = add <16 x i8> %tmp1, %tmp3
|
|
|
|
ret <16 x i8> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vrsraQu16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQu16:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u16
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
|
|
|
%tmp3 = call <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16> %tmp2, <8 x i16> < i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16, i16 -16 >)
|
|
|
|
%tmp4 = add <8 x i16> %tmp1, %tmp3
|
|
|
|
ret <8 x i16> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vrsraQu32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQu32:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u32
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
|
|
|
%tmp3 = call <4 x i32> @llvm.arm.neon.vrshiftu.v4i32(<4 x i32> %tmp2, <4 x i32> < i32 -32, i32 -32, i32 -32, i32 -32 >)
|
|
|
|
%tmp4 = add <4 x i32> %tmp1, %tmp3
|
|
|
|
ret <4 x i32> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i64> @vrsraQu64(<2 x i64>* %A, <2 x i64>* %B) nounwind {
|
2013-07-14 08:24:09 +02:00
|
|
|
;CHECK-LABEL: vrsraQu64:
|
2009-10-09 07:14:48 +02:00
|
|
|
;CHECK: vrsra.u64
|
2009-06-23 01:27:02 +02:00
|
|
|
%tmp1 = load <2 x i64>* %A
|
|
|
|
%tmp2 = load <2 x i64>* %B
|
|
|
|
%tmp3 = call <2 x i64> @llvm.arm.neon.vrshiftu.v2i64(<2 x i64> %tmp2, <2 x i64> < i64 -64, i64 -64 >)
|
|
|
|
%tmp4 = add <2 x i64> %tmp1, %tmp3
|
|
|
|
ret <2 x i64> %tmp4
|
|
|
|
}
|
|
|
|
|
|
|
|
declare <8 x i8> @llvm.arm.neon.vrshifts.v8i8(<8 x i8>, <8 x i8>) nounwind readnone
|
|
|
|
declare <4 x i16> @llvm.arm.neon.vrshifts.v4i16(<4 x i16>, <4 x i16>) nounwind readnone
|
|
|
|
declare <2 x i32> @llvm.arm.neon.vrshifts.v2i32(<2 x i32>, <2 x i32>) nounwind readnone
|
|
|
|
declare <1 x i64> @llvm.arm.neon.vrshifts.v1i64(<1 x i64>, <1 x i64>) nounwind readnone
|
|
|
|
|
|
|
|
declare <8 x i8> @llvm.arm.neon.vrshiftu.v8i8(<8 x i8>, <8 x i8>) nounwind readnone
|
|
|
|
declare <4 x i16> @llvm.arm.neon.vrshiftu.v4i16(<4 x i16>, <4 x i16>) nounwind readnone
|
|
|
|
declare <2 x i32> @llvm.arm.neon.vrshiftu.v2i32(<2 x i32>, <2 x i32>) nounwind readnone
|
|
|
|
declare <1 x i64> @llvm.arm.neon.vrshiftu.v1i64(<1 x i64>, <1 x i64>) nounwind readnone
|
|
|
|
|
|
|
|
declare <16 x i8> @llvm.arm.neon.vrshifts.v16i8(<16 x i8>, <16 x i8>) nounwind readnone
|
|
|
|
declare <8 x i16> @llvm.arm.neon.vrshifts.v8i16(<8 x i16>, <8 x i16>) nounwind readnone
|
|
|
|
declare <4 x i32> @llvm.arm.neon.vrshifts.v4i32(<4 x i32>, <4 x i32>) nounwind readnone
|
|
|
|
declare <2 x i64> @llvm.arm.neon.vrshifts.v2i64(<2 x i64>, <2 x i64>) nounwind readnone
|
|
|
|
|
|
|
|
declare <16 x i8> @llvm.arm.neon.vrshiftu.v16i8(<16 x i8>, <16 x i8>) nounwind readnone
|
|
|
|
declare <8 x i16> @llvm.arm.neon.vrshiftu.v8i16(<8 x i16>, <8 x i16>) nounwind readnone
|
|
|
|
declare <4 x i32> @llvm.arm.neon.vrshiftu.v4i32(<4 x i32>, <4 x i32>) nounwind readnone
|
|
|
|
declare <2 x i64> @llvm.arm.neon.vrshiftu.v2i64(<2 x i64>, <2 x i64>) nounwind readnone
|