Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mcpu=corei7 -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
      2 
      3 define void @foo(<3 x float> %in, <4 x i8>* nocapture %out) nounwind {
      4   %t0 = fptoui <3 x float> %in to <3 x i8>
      5   %t1 = shufflevector <3 x i8> %t0, <3 x i8> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 undef>
      6   %t2 = insertelement <4 x i8> %t1, i8 -1, i32 3
      7   store <4 x i8> %t2, <4 x i8>* %out, align 4
      8   ret void
      9 ; CHECK: foo
     10 ; CHECK: cvttps2dq
     11 ; CHECK-NOT: pextrd
     12 ; CHECK: pinsrd
     13 ; CHECK-NEXT: pshufb
     14 ; CHECK: ret
     15 }
     16