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-unknown -mattr=+sse2 | FileCheck %s --check-prefix=CHECK --check-prefix=X86
      3 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=CHECK --check-prefix=X64
      4 
      5 define i32 @extractelt_undef_insertelt(i32 %x, i32 %y) {
      6 ; X86-LABEL: extractelt_undef_insertelt:
      7 ; X86:       # %bb.0:
      8 ; X86-NEXT:    retl
      9 ;
     10 ; X64-LABEL: extractelt_undef_insertelt:
     11 ; X64:       # %bb.0:
     12 ; X64-NEXT:    retq
     13   %b = insertelement <4 x i32> zeroinitializer, i32 %x, i64 3
     14   %c = icmp uge i32 %y, %y
     15   %d = extractelement <4 x i32> %b, i1 %c
     16   ret i32 %d
     17 }
     18 
     19