mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
34 lines
1020 B
LLVM
34 lines
1020 B
LLVM
|
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 -mattr=sse2 | FileCheck %s
|
||
|
|
||
|
define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) {
|
||
|
%select = select <4 x i1><i1 true, i1 true, i1 false, i1 false>, <4 x i32> %A, <4 x i32> %B
|
||
|
ret <4 x i32> %select
|
||
|
}
|
||
|
; CHECK-LABEL: test1
|
||
|
; CHECK: movsd
|
||
|
; CHECK: ret
|
||
|
|
||
|
define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) {
|
||
|
%select = select <4 x i1><i1 false, i1 false, i1 true, i1 true>, <4 x i32> %A, <4 x i32> %B
|
||
|
ret <4 x i32> %select
|
||
|
}
|
||
|
; CHECK-LABEL: test2
|
||
|
; CHECK: movsd
|
||
|
; CHECK-NEXT: ret
|
||
|
|
||
|
define <4 x float> @test3(<4 x float> %A, <4 x float> %B) {
|
||
|
%select = select <4 x i1><i1 true, i1 true, i1 false, i1 false>, <4 x float> %A, <4 x float> %B
|
||
|
ret <4 x float> %select
|
||
|
}
|
||
|
; CHECK-LABEL: test3
|
||
|
; CHECK: movsd
|
||
|
; CHECK: ret
|
||
|
|
||
|
define <4 x float> @test4(<4 x float> %A, <4 x float> %B) {
|
||
|
%select = select <4 x i1><i1 false, i1 false, i1 true, i1 true>, <4 x float> %A, <4 x float> %B
|
||
|
ret <4 x float> %select
|
||
|
}
|
||
|
; CHECK-LABEL: test4
|
||
|
; CHECK: movsd
|
||
|
; CHECK-NEXT: ret
|