Home | History | Annotate | Download | only in X86
      1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
      2 ; RUN: llc < %s -mtriple=i686-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X86
      3 ; RUN: llc < %s -mtriple=x86_64-unknown -mattr=+sse4.2 | FileCheck %s --check-prefix=X64
      4 
      5 ; compare v2i16
      6 
      7 define <2 x i16> @compare_v2i64_to_v2i16(<2 x i16>* %src) nounwind {
      8 ; X86-LABEL: compare_v2i64_to_v2i16:
      9 ; X86:       # BB#0:
     10 ; X86-NEXT:    movaps {{.*#+}} xmm0 = [65535,0,65535,0]
     11 ; X86-NEXT:    retl
     12 ;
     13 ; X64-LABEL: compare_v2i64_to_v2i16:
     14 ; X64:       # BB#0:
     15 ; X64-NEXT:    movaps {{.*#+}} xmm0 = [65535,65535]
     16 ; X64-NEXT:    retq
     17   %val = load <2 x i16>, <2 x i16>* %src, align 4
     18   %cmp = icmp uge <2 x i16> %val, %val
     19   %sel = select <2 x i1> %cmp, <2 x i16> <i16 -1, i16 -1>, <2 x i16> zeroinitializer
     20   ret <2 x i16> %sel
     21 }
     22