mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-18 10:08:34 +00:00
5bafff36c7
This is still a work in progress but most of the NEON instruction set is supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73919 91177308-0d34-0410-b5e6-96231b3b80d8
53 lines
1.5 KiB
LLVM
53 lines
1.5 KiB
LLVM
; RUN: llvm-as < %s | llc -march=arm -mattr=+neon > %t
|
|
; RUN: grep {vtst\\.i8} %t | count 2
|
|
; RUN: grep {vtst\\.i16} %t | count 2
|
|
; RUN: grep {vtst\\.i32} %t | count 2
|
|
|
|
define <8 x i8> @vtsti8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
|
|
%tmp1 = load <8 x i8>* %A
|
|
%tmp2 = load <8 x i8>* %B
|
|
%tmp3 = and <8 x i8> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <8 x i8> %tmp3, zeroinitializer
|
|
ret <8 x i8> %tmp4
|
|
}
|
|
|
|
define <4 x i16> @vtsti16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
|
|
%tmp1 = load <4 x i16>* %A
|
|
%tmp2 = load <4 x i16>* %B
|
|
%tmp3 = and <4 x i16> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <4 x i16> %tmp3, zeroinitializer
|
|
ret <4 x i16> %tmp4
|
|
}
|
|
|
|
define <2 x i32> @vtsti32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
|
|
%tmp1 = load <2 x i32>* %A
|
|
%tmp2 = load <2 x i32>* %B
|
|
%tmp3 = and <2 x i32> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <2 x i32> %tmp3, zeroinitializer
|
|
ret <2 x i32> %tmp4
|
|
}
|
|
|
|
define <16 x i8> @vtstQi8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
|
|
%tmp1 = load <16 x i8>* %A
|
|
%tmp2 = load <16 x i8>* %B
|
|
%tmp3 = and <16 x i8> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <16 x i8> %tmp3, zeroinitializer
|
|
ret <16 x i8> %tmp4
|
|
}
|
|
|
|
define <8 x i16> @vtstQi16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
|
|
%tmp1 = load <8 x i16>* %A
|
|
%tmp2 = load <8 x i16>* %B
|
|
%tmp3 = and <8 x i16> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <8 x i16> %tmp3, zeroinitializer
|
|
ret <8 x i16> %tmp4
|
|
}
|
|
|
|
define <4 x i32> @vtstQi32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
|
|
%tmp1 = load <4 x i32>* %A
|
|
%tmp2 = load <4 x i32>* %B
|
|
%tmp3 = and <4 x i32> %tmp1, %tmp2
|
|
%tmp4 = vicmp ne <4 x i32> %tmp3, zeroinitializer
|
|
ret <4 x i32> %tmp4
|
|
}
|