mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
515cdbe49d
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75024 91177308-0d34-0410-b5e6-96231b3b80d8
44 lines
944 B
LLVM
44 lines
944 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -mcpu=yonah | FileCheck %s
|
|
|
|
|
|
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind {
|
|
; CHECK: test1:
|
|
; CHECK: pcmpgtd
|
|
; CHECK: ret
|
|
|
|
%C = icmp sgt <4 x i32> %A, %B
|
|
%D = sext <4 x i1> %C to <4 x i32>
|
|
ret <4 x i32> %D
|
|
}
|
|
|
|
define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind {
|
|
; CHECK: test2:
|
|
; CHECK: pcmp
|
|
; CHECK: pcmp
|
|
; CHECK: xorps
|
|
; CHECK: ret
|
|
%C = icmp sge <4 x i32> %A, %B
|
|
%D = sext <4 x i1> %C to <4 x i32>
|
|
ret <4 x i32> %D
|
|
}
|
|
|
|
define <4 x i32> @test3(<4 x i32> %A, <4 x i32> %B) nounwind {
|
|
; CHECK: test3:
|
|
; CHECK: pcmpgtd
|
|
; CHECK: movaps
|
|
; CHECK: ret
|
|
%C = icmp slt <4 x i32> %A, %B
|
|
%D = sext <4 x i1> %C to <4 x i32>
|
|
ret <4 x i32> %D
|
|
}
|
|
|
|
define <4 x i32> @test4(<4 x i32> %A, <4 x i32> %B) nounwind {
|
|
; CHECK: test4:
|
|
; CHECK: movaps
|
|
; CHECK: pcmpgtd
|
|
; CHECK: ret
|
|
%C = icmp ugt <4 x i32> %A, %B
|
|
%D = sext <4 x i1> %C to <4 x i32>
|
|
ret <4 x i32> %D
|
|
}
|