63 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s3 4define <4 x i32> @test_ueq(<4 x float> %in) {5; CHECK-LABEL: test_ueq:6; CHECK: # %bb.0:7; CHECK-NEXT: pcmpeqd %xmm0, %xmm08; CHECK-NEXT: retq9 %t0 = fcmp ueq <4 x float> %in, %in10 %t1 = sext <4 x i1> %t0 to <4 x i32>11 ret <4 x i32> %t112}13 14define <4 x i32> @test_uge(<4 x float> %in) {15; CHECK-LABEL: test_uge:16; CHECK: # %bb.0:17; CHECK-NEXT: pcmpeqd %xmm0, %xmm018; CHECK-NEXT: retq19 %t0 = fcmp uge <4 x float> %in, %in20 %t1 = sext <4 x i1> %t0 to <4 x i32>21 ret <4 x i32> %t122}23 24define <4 x i32> @test_ule(<4 x float> %in) {25; CHECK-LABEL: test_ule:26; CHECK: # %bb.0:27; CHECK-NEXT: pcmpeqd %xmm0, %xmm028; CHECK-NEXT: retq29 %t0 = fcmp ule <4 x float> %in, %in30 %t1 = sext <4 x i1> %t0 to <4 x i32>31 ret <4 x i32> %t132}33 34define <4 x i32> @test_one(<4 x float> %in) {35; CHECK-LABEL: test_one:36; CHECK: # %bb.0:37; CHECK-NEXT: xorps %xmm0, %xmm038; CHECK-NEXT: retq39 %t0 = fcmp one <4 x float> %in, %in40 %t1 = sext <4 x i1> %t0 to <4 x i32>41 ret <4 x i32> %t142}43 44define <4 x i32> @test_ogt(<4 x float> %in) {45; CHECK-LABEL: test_ogt:46; CHECK: # %bb.0:47; CHECK-NEXT: xorps %xmm0, %xmm048; CHECK-NEXT: retq49 %t0 = fcmp ogt <4 x float> %in, %in50 %t1 = sext <4 x i1> %t0 to <4 x i32>51 ret <4 x i32> %t152}53 54define <4 x i32> @test_olt(<4 x float> %in) {55; CHECK-LABEL: test_olt:56; CHECK: # %bb.0:57; CHECK-NEXT: xorps %xmm0, %xmm058; CHECK-NEXT: retq59 %t0 = fcmp olt <4 x float> %in, %in60 %t1 = sext <4 x i1> %t0 to <4 x i32>61 ret <4 x i32> %t162}63