2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2009-10-06 21:16:19 +00:00
|
|
|
%struct.__neon_int8x8x2_t = type { <8 x i8>, <8 x i8> }
|
|
|
|
%struct.__neon_int16x4x2_t = type { <4 x i16>, <4 x i16> }
|
|
|
|
%struct.__neon_int32x2x2_t = type { <2 x i32>, <2 x i32> }
|
|
|
|
%struct.__neon_float32x2x2_t = type { <2 x float>, <2 x float> }
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2009-10-08 18:56:10 +00:00
|
|
|
%struct.__neon_int16x8x2_t = type { <8 x i16>, <8 x i16> }
|
|
|
|
%struct.__neon_int32x4x2_t = type { <4 x i32>, <4 x i32> }
|
|
|
|
%struct.__neon_float32x4x2_t = type { <4 x float>, <4 x float> }
|
|
|
|
|
2009-09-01 04:27:10 +00:00
|
|
|
define <8 x i8> @vld2lanei8(i8* %A, <8 x i8>* %B) nounwind {
|
|
|
|
;CHECK: vld2lanei8:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 16 bits:
|
|
|
|
;CHECK: vld2.8 {d16[1], d17[1]}, [r0, :16]
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <8 x i8>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int8x8x2_t @llvm.arm.neon.vld2lane.v8i8(i8* %A, <8 x i8> %tmp1, <8 x i8> %tmp1, i32 1, i32 4)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int8x8x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int8x8x2_t %tmp2, 1
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp5 = add <8 x i8> %tmp3, %tmp4
|
|
|
|
ret <8 x i8> %tmp5
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vld2lanei16(i16* %A, <4 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld2lanei16:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 32 bits:
|
|
|
|
;CHECK: vld2.16 {d16[1], d17[1]}, [r0, :32]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <4 x i16>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x4x2_t @llvm.arm.neon.vld2lane.v4i16(i8* %tmp0, <4 x i16> %tmp1, <4 x i16> %tmp1, i32 1, i32 8)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x4x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x4x2_t %tmp2, 1
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp5 = add <4 x i16> %tmp3, %tmp4
|
|
|
|
ret <4 x i16> %tmp5
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vld2lanei32(i32* %A, <2 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld2lanei32:
|
|
|
|
;CHECK: vld2.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x i32>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x2x2_t @llvm.arm.neon.vld2lane.v2i32(i8* %tmp0, <2 x i32> %tmp1, <2 x i32> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x2x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x2x2_t %tmp2, 1
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp5 = add <2 x i32> %tmp3, %tmp4
|
|
|
|
ret <2 x i32> %tmp5
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x float> @vld2lanef(float* %A, <2 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld2lanef:
|
|
|
|
;CHECK: vld2.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x2x2_t @llvm.arm.neon.vld2lane.v2f32(i8* %tmp0, <2 x float> %tmp1, <2 x float> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x2x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x2x2_t %tmp2, 1
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp5 = fadd <2 x float> %tmp3, %tmp4
|
2009-09-01 04:27:10 +00:00
|
|
|
ret <2 x float> %tmp5
|
|
|
|
}
|
|
|
|
|
2009-10-08 18:56:10 +00:00
|
|
|
define <8 x i16> @vld2laneQi16(i16* %A, <8 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld2laneQi16:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the (default) alignment.
|
|
|
|
;CHECK: vld2.16 {d17[1], d19[1]}, [r0]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp1 = load <8 x i16>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x8x2_t @llvm.arm.neon.vld2lane.v8i16(i8* %tmp0, <8 x i16> %tmp1, <8 x i16> %tmp1, i32 5, i32 1)
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x8x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x8x2_t %tmp2, 1
|
|
|
|
%tmp5 = add <8 x i16> %tmp3, %tmp4
|
|
|
|
ret <8 x i16> %tmp5
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vld2laneQi32(i32* %A, <4 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld2laneQi32:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 64 bits:
|
|
|
|
;CHECK: vld2.32 {d17[0], d19[0]}, [r0, :64]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp1 = load <4 x i32>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x4x2_t @llvm.arm.neon.vld2lane.v4i32(i8* %tmp0, <4 x i32> %tmp1, <4 x i32> %tmp1, i32 2, i32 16)
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x4x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x4x2_t %tmp2, 1
|
|
|
|
%tmp5 = add <4 x i32> %tmp3, %tmp4
|
|
|
|
ret <4 x i32> %tmp5
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x float> @vld2laneQf(float* %A, <4 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld2laneQf:
|
|
|
|
;CHECK: vld2.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp1 = load <4 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x4x2_t @llvm.arm.neon.vld2lane.v4f32(i8* %tmp0, <4 x float> %tmp1, <4 x float> %tmp1, i32 1, i32 1)
|
2009-10-08 18:56:10 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x4x2_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x4x2_t %tmp2, 1
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp5 = fadd <4 x float> %tmp3, %tmp4
|
2009-10-08 18:56:10 +00:00
|
|
|
ret <4 x float> %tmp5
|
|
|
|
}
|
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int8x8x2_t @llvm.arm.neon.vld2lane.v8i8(i8*, <8 x i8>, <8 x i8>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int16x4x2_t @llvm.arm.neon.vld2lane.v4i16(i8*, <4 x i16>, <4 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x2x2_t @llvm.arm.neon.vld2lane.v2i32(i8*, <2 x i32>, <2 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x2x2_t @llvm.arm.neon.vld2lane.v2f32(i8*, <2 x float>, <2 x float>, i32, i32) nounwind readonly
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int16x8x2_t @llvm.arm.neon.vld2lane.v8i16(i8*, <8 x i16>, <8 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x4x2_t @llvm.arm.neon.vld2lane.v4i32(i8*, <4 x i32>, <4 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x4x2_t @llvm.arm.neon.vld2lane.v4f32(i8*, <4 x float>, <4 x float>, i32, i32) nounwind readonly
|
2009-10-08 18:56:10 +00:00
|
|
|
|
2009-10-06 21:16:19 +00:00
|
|
|
%struct.__neon_int8x8x3_t = type { <8 x i8>, <8 x i8>, <8 x i8> }
|
|
|
|
%struct.__neon_int16x4x3_t = type { <4 x i16>, <4 x i16>, <4 x i16> }
|
|
|
|
%struct.__neon_int32x2x3_t = type { <2 x i32>, <2 x i32>, <2 x i32> }
|
|
|
|
%struct.__neon_float32x2x3_t = type { <2 x float>, <2 x float>, <2 x float> }
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2009-10-08 22:27:33 +00:00
|
|
|
%struct.__neon_int16x8x3_t = type { <8 x i16>, <8 x i16>, <8 x i16> }
|
|
|
|
%struct.__neon_int32x4x3_t = type { <4 x i32>, <4 x i32>, <4 x i32> }
|
|
|
|
%struct.__neon_float32x4x3_t = type { <4 x float>, <4 x float>, <4 x float> }
|
|
|
|
|
2009-09-01 04:27:10 +00:00
|
|
|
define <8 x i8> @vld3lanei8(i8* %A, <8 x i8>* %B) nounwind {
|
|
|
|
;CHECK: vld3lanei8:
|
|
|
|
;CHECK: vld3.8
|
|
|
|
%tmp1 = load <8 x i8>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_int8x8x3_t @llvm.arm.neon.vld3lane.v8i8(i8* %A, <8 x i8> %tmp1, <8 x i8> %tmp1, <8 x i8> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int8x8x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int8x8x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int8x8x3_t %tmp2, 2
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp6 = add <8 x i8> %tmp3, %tmp4
|
|
|
|
%tmp7 = add <8 x i8> %tmp5, %tmp6
|
|
|
|
ret <8 x i8> %tmp7
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vld3lanei16(i16* %A, <4 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld3lanei16:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the (default) alignment value. VLD3 does not support alignment.
|
|
|
|
;CHECK: vld3.16 {d16[1], d17[1], d18[1]}, [r0]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <4 x i16>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x4x3_t @llvm.arm.neon.vld3lane.v4i16(i8* %tmp0, <4 x i16> %tmp1, <4 x i16> %tmp1, <4 x i16> %tmp1, i32 1, i32 8)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x4x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x4x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int16x4x3_t %tmp2, 2
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp6 = add <4 x i16> %tmp3, %tmp4
|
|
|
|
%tmp7 = add <4 x i16> %tmp5, %tmp6
|
|
|
|
ret <4 x i16> %tmp7
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vld3lanei32(i32* %A, <2 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld3lanei32:
|
|
|
|
;CHECK: vld3.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x i32>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x2x3_t @llvm.arm.neon.vld3lane.v2i32(i8* %tmp0, <2 x i32> %tmp1, <2 x i32> %tmp1, <2 x i32> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x2x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x2x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int32x2x3_t %tmp2, 2
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp6 = add <2 x i32> %tmp3, %tmp4
|
|
|
|
%tmp7 = add <2 x i32> %tmp5, %tmp6
|
|
|
|
ret <2 x i32> %tmp7
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x float> @vld3lanef(float* %A, <2 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld3lanef:
|
|
|
|
;CHECK: vld3.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x2x3_t @llvm.arm.neon.vld3lane.v2f32(i8* %tmp0, <2 x float> %tmp1, <2 x float> %tmp1, <2 x float> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x2x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x2x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_float32x2x3_t %tmp2, 2
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp6 = fadd <2 x float> %tmp3, %tmp4
|
|
|
|
%tmp7 = fadd <2 x float> %tmp5, %tmp6
|
2009-09-01 04:27:10 +00:00
|
|
|
ret <2 x float> %tmp7
|
|
|
|
}
|
|
|
|
|
2009-10-08 22:27:33 +00:00
|
|
|
define <8 x i16> @vld3laneQi16(i16* %A, <8 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld3laneQi16:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the (default) alignment value. VLD3 does not support alignment.
|
|
|
|
;CHECK: vld3.16 {d16[1], d18[1], d20[1]}, [r0]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp1 = load <8 x i16>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x8x3_t @llvm.arm.neon.vld3lane.v8i16(i8* %tmp0, <8 x i16> %tmp1, <8 x i16> %tmp1, <8 x i16> %tmp1, i32 1, i32 8)
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x8x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x8x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int16x8x3_t %tmp2, 2
|
|
|
|
%tmp6 = add <8 x i16> %tmp3, %tmp4
|
|
|
|
%tmp7 = add <8 x i16> %tmp5, %tmp6
|
|
|
|
ret <8 x i16> %tmp7
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vld3laneQi32(i32* %A, <4 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld3laneQi32:
|
|
|
|
;CHECK: vld3.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp1 = load <4 x i32>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x4x3_t @llvm.arm.neon.vld3lane.v4i32(i8* %tmp0, <4 x i32> %tmp1, <4 x i32> %tmp1, <4 x i32> %tmp1, i32 3, i32 1)
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x4x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x4x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int32x4x3_t %tmp2, 2
|
|
|
|
%tmp6 = add <4 x i32> %tmp3, %tmp4
|
|
|
|
%tmp7 = add <4 x i32> %tmp5, %tmp6
|
|
|
|
ret <4 x i32> %tmp7
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x float> @vld3laneQf(float* %A, <4 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld3laneQf:
|
|
|
|
;CHECK: vld3.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp1 = load <4 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x4x3_t @llvm.arm.neon.vld3lane.v4f32(i8* %tmp0, <4 x float> %tmp1, <4 x float> %tmp1, <4 x float> %tmp1, i32 1, i32 1)
|
2009-10-08 22:27:33 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x4x3_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x4x3_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_float32x4x3_t %tmp2, 2
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp6 = fadd <4 x float> %tmp3, %tmp4
|
|
|
|
%tmp7 = fadd <4 x float> %tmp5, %tmp6
|
2009-10-08 22:27:33 +00:00
|
|
|
ret <4 x float> %tmp7
|
|
|
|
}
|
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int8x8x3_t @llvm.arm.neon.vld3lane.v8i8(i8*, <8 x i8>, <8 x i8>, <8 x i8>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int16x4x3_t @llvm.arm.neon.vld3lane.v4i16(i8*, <4 x i16>, <4 x i16>, <4 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x2x3_t @llvm.arm.neon.vld3lane.v2i32(i8*, <2 x i32>, <2 x i32>, <2 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x2x3_t @llvm.arm.neon.vld3lane.v2f32(i8*, <2 x float>, <2 x float>, <2 x float>, i32, i32) nounwind readonly
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int16x8x3_t @llvm.arm.neon.vld3lane.v8i16(i8*, <8 x i16>, <8 x i16>, <8 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x4x3_t @llvm.arm.neon.vld3lane.v4i32(i8*, <4 x i32>, <4 x i32>, <4 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x4x3_t @llvm.arm.neon.vld3lane.v4f32(i8*, <4 x float>, <4 x float>, <4 x float>, i32, i32) nounwind readonly
|
2009-10-08 22:27:33 +00:00
|
|
|
|
2009-10-06 21:16:19 +00:00
|
|
|
%struct.__neon_int8x8x4_t = type { <8 x i8>, <8 x i8>, <8 x i8>, <8 x i8> }
|
|
|
|
%struct.__neon_int16x4x4_t = type { <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16> }
|
|
|
|
%struct.__neon_int32x2x4_t = type { <2 x i32>, <2 x i32>, <2 x i32>, <2 x i32> }
|
|
|
|
%struct.__neon_float32x2x4_t = type { <2 x float>, <2 x float>, <2 x float>, <2 x float> }
|
2009-09-01 04:27:10 +00:00
|
|
|
|
2009-10-08 22:53:57 +00:00
|
|
|
%struct.__neon_int16x8x4_t = type { <8 x i16>, <8 x i16>, <8 x i16>, <8 x i16> }
|
|
|
|
%struct.__neon_int32x4x4_t = type { <4 x i32>, <4 x i32>, <4 x i32>, <4 x i32> }
|
|
|
|
%struct.__neon_float32x4x4_t = type { <4 x float>, <4 x float>, <4 x float>, <4 x float> }
|
|
|
|
|
2009-09-01 04:27:10 +00:00
|
|
|
define <8 x i8> @vld4lanei8(i8* %A, <8 x i8>* %B) nounwind {
|
|
|
|
;CHECK: vld4lanei8:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 32 bits:
|
|
|
|
;CHECK: vld4.8 {d16[1], d17[1], d18[1], d19[1]}, [r0, :32]
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <8 x i8>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int8x8x4_t @llvm.arm.neon.vld4lane.v8i8(i8* %A, <8 x i8> %tmp1, <8 x i8> %tmp1, <8 x i8> %tmp1, <8 x i8> %tmp1, i32 1, i32 8)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int8x8x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int8x8x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int8x8x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_int8x8x4_t %tmp2, 3
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp7 = add <8 x i8> %tmp3, %tmp4
|
|
|
|
%tmp8 = add <8 x i8> %tmp5, %tmp6
|
|
|
|
%tmp9 = add <8 x i8> %tmp7, %tmp8
|
|
|
|
ret <8 x i8> %tmp9
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vld4lanei16(i16* %A, <4 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld4lanei16:
|
|
|
|
;CHECK: vld4.16
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <4 x i16>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x4x4_t @llvm.arm.neon.vld4lane.v4i16(i8* %tmp0, <4 x i16> %tmp1, <4 x i16> %tmp1, <4 x i16> %tmp1, <4 x i16> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x4x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x4x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int16x4x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_int16x4x4_t %tmp2, 3
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp7 = add <4 x i16> %tmp3, %tmp4
|
|
|
|
%tmp8 = add <4 x i16> %tmp5, %tmp6
|
|
|
|
%tmp9 = add <4 x i16> %tmp7, %tmp8
|
|
|
|
ret <4 x i16> %tmp9
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vld4lanei32(i32* %A, <2 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld4lanei32:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 128 bits:
|
|
|
|
;CHECK: vld4.32 {d16[1], d17[1], d18[1], d19[1]}, [r0, :128]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x i32>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x2x4_t @llvm.arm.neon.vld4lane.v2i32(i8* %tmp0, <2 x i32> %tmp1, <2 x i32> %tmp1, <2 x i32> %tmp1, <2 x i32> %tmp1, i32 1, i32 16)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x2x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x2x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int32x2x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_int32x2x4_t %tmp2, 3
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp7 = add <2 x i32> %tmp3, %tmp4
|
|
|
|
%tmp8 = add <2 x i32> %tmp5, %tmp6
|
|
|
|
%tmp9 = add <2 x i32> %tmp7, %tmp8
|
|
|
|
ret <2 x i32> %tmp9
|
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x float> @vld4lanef(float* %A, <2 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld4lanef:
|
|
|
|
;CHECK: vld4.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-09-01 04:27:10 +00:00
|
|
|
%tmp1 = load <2 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x2x4_t @llvm.arm.neon.vld4lane.v2f32(i8* %tmp0, <2 x float> %tmp1, <2 x float> %tmp1, <2 x float> %tmp1, <2 x float> %tmp1, i32 1, i32 1)
|
2009-10-06 21:16:19 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x2x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x2x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_float32x2x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_float32x2x4_t %tmp2, 3
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp7 = fadd <2 x float> %tmp3, %tmp4
|
|
|
|
%tmp8 = fadd <2 x float> %tmp5, %tmp6
|
|
|
|
%tmp9 = fadd <2 x float> %tmp7, %tmp8
|
2009-09-01 04:27:10 +00:00
|
|
|
ret <2 x float> %tmp9
|
|
|
|
}
|
|
|
|
|
2009-10-08 22:53:57 +00:00
|
|
|
define <8 x i16> @vld4laneQi16(i16* %A, <8 x i16>* %B) nounwind {
|
|
|
|
;CHECK: vld4laneQi16:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the alignment value. Max for this instruction is 64 bits:
|
|
|
|
;CHECK: vld4.16 {d16[1], d18[1], d20[1], d22[1]}, [r0, :64]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i16* %A to i8*
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp1 = load <8 x i16>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int16x8x4_t @llvm.arm.neon.vld4lane.v8i16(i8* %tmp0, <8 x i16> %tmp1, <8 x i16> %tmp1, <8 x i16> %tmp1, <8 x i16> %tmp1, i32 1, i32 16)
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int16x8x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int16x8x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int16x8x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_int16x8x4_t %tmp2, 3
|
|
|
|
%tmp7 = add <8 x i16> %tmp3, %tmp4
|
|
|
|
%tmp8 = add <8 x i16> %tmp5, %tmp6
|
|
|
|
%tmp9 = add <8 x i16> %tmp7, %tmp8
|
|
|
|
ret <8 x i16> %tmp9
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vld4laneQi32(i32* %A, <4 x i32>* %B) nounwind {
|
|
|
|
;CHECK: vld4laneQi32:
|
2010-10-19 00:16:32 +00:00
|
|
|
;Check the (default) alignment.
|
|
|
|
;CHECK: vld4.32 {d17[0], d19[0], d21[0], d23[0]}, [r0]
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast i32* %A to i8*
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp1 = load <4 x i32>* %B
|
2010-10-19 00:16:32 +00:00
|
|
|
%tmp2 = call %struct.__neon_int32x4x4_t @llvm.arm.neon.vld4lane.v4i32(i8* %tmp0, <4 x i32> %tmp1, <4 x i32> %tmp1, <4 x i32> %tmp1, <4 x i32> %tmp1, i32 2, i32 1)
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_int32x4x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_int32x4x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_int32x4x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_int32x4x4_t %tmp2, 3
|
|
|
|
%tmp7 = add <4 x i32> %tmp3, %tmp4
|
|
|
|
%tmp8 = add <4 x i32> %tmp5, %tmp6
|
|
|
|
%tmp9 = add <4 x i32> %tmp7, %tmp8
|
|
|
|
ret <4 x i32> %tmp9
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x float> @vld4laneQf(float* %A, <4 x float>* %B) nounwind {
|
|
|
|
;CHECK: vld4laneQf:
|
|
|
|
;CHECK: vld4.32
|
2010-04-20 00:17:16 +00:00
|
|
|
%tmp0 = bitcast float* %A to i8*
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp1 = load <4 x float>* %B
|
2010-08-27 17:13:24 +00:00
|
|
|
%tmp2 = call %struct.__neon_float32x4x4_t @llvm.arm.neon.vld4lane.v4f32(i8* %tmp0, <4 x float> %tmp1, <4 x float> %tmp1, <4 x float> %tmp1, <4 x float> %tmp1, i32 1, i32 1)
|
2009-10-08 22:53:57 +00:00
|
|
|
%tmp3 = extractvalue %struct.__neon_float32x4x4_t %tmp2, 0
|
|
|
|
%tmp4 = extractvalue %struct.__neon_float32x4x4_t %tmp2, 1
|
|
|
|
%tmp5 = extractvalue %struct.__neon_float32x4x4_t %tmp2, 2
|
|
|
|
%tmp6 = extractvalue %struct.__neon_float32x4x4_t %tmp2, 3
|
2010-05-03 22:36:46 +00:00
|
|
|
%tmp7 = fadd <4 x float> %tmp3, %tmp4
|
|
|
|
%tmp8 = fadd <4 x float> %tmp5, %tmp6
|
|
|
|
%tmp9 = fadd <4 x float> %tmp7, %tmp8
|
2009-10-08 22:53:57 +00:00
|
|
|
ret <4 x float> %tmp9
|
|
|
|
}
|
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int8x8x4_t @llvm.arm.neon.vld4lane.v8i8(i8*, <8 x i8>, <8 x i8>, <8 x i8>, <8 x i8>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int16x4x4_t @llvm.arm.neon.vld4lane.v4i16(i8*, <4 x i16>, <4 x i16>, <4 x i16>, <4 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x2x4_t @llvm.arm.neon.vld4lane.v2i32(i8*, <2 x i32>, <2 x i32>, <2 x i32>, <2 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x2x4_t @llvm.arm.neon.vld4lane.v2f32(i8*, <2 x float>, <2 x float>, <2 x float>, <2 x float>, i32, i32) nounwind readonly
|
2009-10-08 22:53:57 +00:00
|
|
|
|
2010-08-27 17:13:24 +00:00
|
|
|
declare %struct.__neon_int16x8x4_t @llvm.arm.neon.vld4lane.v8i16(i8*, <8 x i16>, <8 x i16>, <8 x i16>, <8 x i16>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_int32x4x4_t @llvm.arm.neon.vld4lane.v4i32(i8*, <4 x i32>, <4 x i32>, <4 x i32>, <4 x i32>, i32, i32) nounwind readonly
|
|
|
|
declare %struct.__neon_float32x4x4_t @llvm.arm.neon.vld4lane.v4f32(i8*, <4 x float>, <4 x float>, <4 x float>, <4 x float>, i32, i32) nounwind readonly
|