2017-06-13 01:31:36 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2016-06-10 23:30:52 +08:00
|
|
|
; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
|
2012-07-06 20:12:39 +08:00
|
|
|
|
2012-07-05 17:32:46 +08:00
|
|
|
define <4 x i32> @test_ueq(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_ueq:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: pcmpeqd %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp ueq <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_uge(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_uge:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: pcmpeqd %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp uge <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_ule(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_ule:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: pcmpeqd %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp ule <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_one(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_one:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: xorps %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp one <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_ogt(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_ogt:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: xorps %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp ogt <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
define <4 x i32> @test_olt(<4 x float> %in) {
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-LABEL: test_olt:
|
2017-12-05 01:18:51 +08:00
|
|
|
; CHECK: # %bb.0:
|
2016-06-10 23:30:52 +08:00
|
|
|
; CHECK-NEXT: xorps %xmm0, %xmm0
|
|
|
|
; CHECK-NEXT: retq
|
|
|
|
%t0 = fcmp olt <4 x float> %in, %in
|
|
|
|
%t1 = sext <4 x i1> %t0 to <4 x i32>
|
|
|
|
ret <4 x i32> %t1
|
2012-07-05 17:32:46 +08:00
|
|
|
}
|