2009-09-09 00:09:15 +00:00
|
|
|
; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
|
2009-06-22 23:27:02 +00:00
|
|
|
|
|
|
|
define <8 x i8> @vcges8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcges8:
|
|
|
|
;CHECK: vcge.s8
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <8 x i8> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <8 x i1> %tmp3 to <8 x i8>
|
|
|
|
ret <8 x i8> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vcges16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcges16:
|
|
|
|
;CHECK: vcge.s16
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <4 x i16> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <4 x i1> %tmp3 to <4 x i16>
|
|
|
|
ret <4 x i16> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vcges32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcges32:
|
|
|
|
;CHECK: vcge.s32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <2 x i32> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <2 x i1> %tmp3 to <2 x i32>
|
|
|
|
ret <2 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i8> @vcgeu8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeu8:
|
|
|
|
;CHECK: vcge.u8
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <8 x i8>* %A
|
|
|
|
%tmp2 = load <8 x i8>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <8 x i8> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <8 x i1> %tmp3 to <8 x i8>
|
|
|
|
ret <8 x i8> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @vcgeu16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeu16:
|
|
|
|
;CHECK: vcge.u16
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <4 x i16>* %A
|
|
|
|
%tmp2 = load <4 x i16>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <4 x i16> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <4 x i1> %tmp3 to <4 x i16>
|
|
|
|
ret <4 x i16> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vcgeu32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeu32:
|
|
|
|
;CHECK: vcge.u32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <2 x i32>* %A
|
|
|
|
%tmp2 = load <2 x i32>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <2 x i32> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <2 x i1> %tmp3 to <2 x i32>
|
|
|
|
ret <2 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <2 x i32> @vcgef32(<2 x float>* %A, <2 x float>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgef32:
|
|
|
|
;CHECK: vcge.f32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <2 x float>* %A
|
|
|
|
%tmp2 = load <2 x float>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = fcmp oge <2 x float> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <2 x i1> %tmp3 to <2 x i32>
|
|
|
|
ret <2 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vcgeQs8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQs8:
|
|
|
|
;CHECK: vcge.s8
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <16 x i8> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <16 x i1> %tmp3 to <16 x i8>
|
|
|
|
ret <16 x i8> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vcgeQs16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQs16:
|
|
|
|
;CHECK: vcge.s16
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <8 x i16> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <8 x i1> %tmp3 to <8 x i16>
|
|
|
|
ret <8 x i16> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vcgeQs32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQs32:
|
|
|
|
;CHECK: vcge.s32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp sge <4 x i32> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <4 x i1> %tmp3 to <4 x i32>
|
|
|
|
ret <4 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <16 x i8> @vcgeQu8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQu8:
|
|
|
|
;CHECK: vcge.u8
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <16 x i8>* %A
|
|
|
|
%tmp2 = load <16 x i8>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <16 x i8> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <16 x i1> %tmp3 to <16 x i8>
|
|
|
|
ret <16 x i8> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <8 x i16> @vcgeQu16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQu16:
|
|
|
|
;CHECK: vcge.u16
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <8 x i16>* %A
|
|
|
|
%tmp2 = load <8 x i16>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <8 x i16> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <8 x i1> %tmp3 to <8 x i16>
|
|
|
|
ret <8 x i16> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vcgeQu32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQu32:
|
|
|
|
;CHECK: vcge.u32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <4 x i32>* %A
|
|
|
|
%tmp2 = load <4 x i32>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = icmp uge <4 x i32> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <4 x i1> %tmp3 to <4 x i32>
|
|
|
|
ret <4 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vcgeQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
|
2009-08-11 05:51:19 +00:00
|
|
|
;CHECK: vcgeQf32:
|
|
|
|
;CHECK: vcge.f32
|
2009-06-22 23:27:02 +00:00
|
|
|
%tmp1 = load <4 x float>* %A
|
|
|
|
%tmp2 = load <4 x float>* %B
|
2009-07-08 00:46:57 +00:00
|
|
|
%tmp3 = fcmp oge <4 x float> %tmp1, %tmp2
|
|
|
|
%tmp4 = sext <4 x i1> %tmp3 to <4 x i32>
|
|
|
|
ret <4 x i32> %tmp4
|
2009-06-22 23:27:02 +00:00
|
|
|
}
|
2009-10-09 20:20:54 +00:00
|
|
|
|
|
|
|
define <2 x i32> @vacgef32(<2 x float>* %A, <2 x float>* %B) nounwind {
|
|
|
|
;CHECK: vacgef32:
|
|
|
|
;CHECK: vacge.f32
|
|
|
|
%tmp1 = load <2 x float>* %A
|
|
|
|
%tmp2 = load <2 x float>* %B
|
|
|
|
%tmp3 = call <2 x i32> @llvm.arm.neon.vacged(<2 x float> %tmp1, <2 x float> %tmp2)
|
|
|
|
ret <2 x i32> %tmp3
|
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @vacgeQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
|
|
|
|
;CHECK: vacgeQf32:
|
|
|
|
;CHECK: vacge.f32
|
|
|
|
%tmp1 = load <4 x float>* %A
|
|
|
|
%tmp2 = load <4 x float>* %B
|
|
|
|
%tmp3 = call <4 x i32> @llvm.arm.neon.vacgeq(<4 x float> %tmp1, <4 x float> %tmp2)
|
|
|
|
ret <4 x i32> %tmp3
|
|
|
|
}
|
|
|
|
|
|
|
|
declare <2 x i32> @llvm.arm.neon.vacged(<2 x float>, <2 x float>) nounwind readnone
|
|
|
|
declare <4 x i32> @llvm.arm.neon.vacgeq(<4 x float>, <4 x float>) nounwind readnone
|