blob: fd01163a5c1af90e6abb5a91fc0fb4f2c88aa8a4 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
Bob Wilsone60fee02009-06-22 23:27:02 +00002
3define <2 x i32> @vacgtf32(<2 x float>* %A, <2 x float>* %B) nounwind {
Bob Wilsona6831ed2009-08-07 23:45:02 +00004;CHECK: vacgtf32:
5;CHECK: vacgt.f32
Bob Wilsone60fee02009-06-22 23:27:02 +00006 %tmp1 = load <2 x float>* %A
7 %tmp2 = load <2 x float>* %B
8 %tmp3 = call <2 x i32> @llvm.arm.neon.vacgtd(<2 x float> %tmp1, <2 x float> %tmp2)
9 ret <2 x i32> %tmp3
10}
11
12define <4 x i32> @vacgtQf32(<4 x float>* %A, <4 x float>* %B) nounwind {
Bob Wilsona6831ed2009-08-07 23:45:02 +000013;CHECK: vacgtQf32:
14;CHECK: vacgt.f32
Bob Wilsone60fee02009-06-22 23:27:02 +000015 %tmp1 = load <4 x float>* %A
16 %tmp2 = load <4 x float>* %B
17 %tmp3 = call <4 x i32> @llvm.arm.neon.vacgtq(<4 x float> %tmp1, <4 x float> %tmp2)
18 ret <4 x i32> %tmp3
19}
20
21declare <2 x i32> @llvm.arm.neon.vacgtd(<2 x float>, <2 x float>) nounwind readnone
22declare <4 x i32> @llvm.arm.neon.vacgtq(<4 x float>, <4 x float>) nounwind readnone