brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 6daa33c Raw
47 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X644 5; compare v2i166 7define <2 x i16> @compare_v2i64_to_v2i16_unary(ptr %src) nounwind {8; X86-LABEL: compare_v2i64_to_v2i16_unary:9; X86:       # %bb.0:10; X86-NEXT:    pcmpeqd %xmm0, %xmm011; X86-NEXT:    retl12;13; X64-LABEL: compare_v2i64_to_v2i16_unary:14; X64:       # %bb.0:15; X64-NEXT:    pcmpeqd %xmm0, %xmm016; X64-NEXT:    retq17  %val = load <2 x i16>, ptr %src, align 418  %cmp = icmp uge <2 x i16> %val, %val19  %sel = select <2 x i1> %cmp, <2 x i16> <i16 -1, i16 -1>, <2 x i16> zeroinitializer20  ret <2 x i16> %sel21}22 23define <2 x i16> @compare_v2i64_to_v2i16_binary(ptr %src0, ptr %src1) nounwind {24; X86-LABEL: compare_v2i64_to_v2i16_binary:25; X86:       # %bb.0:26; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax27; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx28; X86-NEXT:    movd {{.*#+}} xmm1 = mem[0],zero,zero,zero29; X86-NEXT:    movd {{.*#+}} xmm0 = mem[0],zero,zero,zero30; X86-NEXT:    pmaxuw %xmm1, %xmm031; X86-NEXT:    pcmpeqw %xmm1, %xmm032; X86-NEXT:    retl33;34; X64-LABEL: compare_v2i64_to_v2i16_binary:35; X64:       # %bb.0:36; X64-NEXT:    movd {{.*#+}} xmm1 = mem[0],zero,zero,zero37; X64-NEXT:    movd {{.*#+}} xmm0 = mem[0],zero,zero,zero38; X64-NEXT:    pmaxuw %xmm1, %xmm039; X64-NEXT:    pcmpeqw %xmm1, %xmm040; X64-NEXT:    retq41  %val0 = load <2 x i16>, ptr %src0, align 442  %val1 = load <2 x i16>, ptr %src1, align 443  %cmp = icmp uge <2 x i16> %val0, %val144  %sel = select <2 x i1> %cmp, <2 x i16> <i16 -1, i16 -1>, <2 x i16> zeroinitializer45  ret <2 x i16> %sel46}47