1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s 3 4define void @f(ptr %a, ptr %b, ptr %c) { 5; CHECK-LABEL: f: 6; CHECK: # %bb.0: 7; CHECK-NEXT: pinsrw $0, (%rdi), %xmm0 8; CHECK-NEXT: pinsrw $0, 2(%rdi), %xmm1 9; CHECK-NEXT: pinsrw $0, 4(%rdi), %xmm2 10; CHECK-NEXT: pinsrw $0, 6(%rdi), %xmm3 11; CHECK-NEXT: pinsrw $0, (%rsi), %xmm4 12; CHECK-NEXT: pinsrw $0, 2(%rsi), %xmm5 13; CHECK-NEXT: pinsrw $0, 4(%rsi), %xmm6 14; CHECK-NEXT: pinsrw $0, 6(%rsi), %xmm7 15; CHECK-NEXT: pextrw $0, %xmm7, %eax 16; CHECK-NEXT: movw %ax, 14(%rdx) 17; CHECK-NEXT: pextrw $0, %xmm3, %eax 18; CHECK-NEXT: movw %ax, 12(%rdx) 19; CHECK-NEXT: pextrw $0, %xmm6, %eax 20; CHECK-NEXT: movw %ax, 10(%rdx) 21; CHECK-NEXT: pextrw $0, %xmm2, %eax 22; CHECK-NEXT: movw %ax, 8(%rdx) 23; CHECK-NEXT: pextrw $0, %xmm5, %eax 24; CHECK-NEXT: movw %ax, 6(%rdx) 25; CHECK-NEXT: pextrw $0, %xmm1, %eax 26; CHECK-NEXT: movw %ax, 4(%rdx) 27; CHECK-NEXT: pextrw $0, %xmm4, %eax 28; CHECK-NEXT: movw %ax, 2(%rdx) 29; CHECK-NEXT: pextrw $0, %xmm0, %eax 30; CHECK-NEXT: movw %ax, (%rdx) 31; CHECK-NEXT: retq 32 %tmp4 = load <4 x half>, ptr %a 33 %tmp5 = load <4 x half>, ptr %b 34 %tmp7 = shufflevector <4 x half> %tmp4, <4 x half> %tmp5, <2 x i32> <i32 0, i32 4> 35 %tmp8 = shufflevector <4 x half> %tmp4, <4 x half> %tmp5, <2 x i32> <i32 1, i32 5> 36 %tmp9 = shufflevector <4 x half> %tmp4, <4 x half> %tmp5, <2 x i32> <i32 2, i32 6> 37 %tmp10 = shufflevector <4 x half> %tmp4, <4 x half> %tmp5, <2 x i32> <i32 3, i32 7> 38 %tmp11 = extractelement <2 x half> %tmp7, i32 0 39 %tmp12 = insertelement <8 x half> undef, half %tmp11, i32 0 40 %tmp13 = extractelement <2 x half> %tmp7, i32 1 41 %tmp14 = insertelement <8 x half> %tmp12, half %tmp13, i32 1 42 %tmp15 = extractelement <2 x half> %tmp8, i32 0 43 %tmp16 = insertelement <8 x half> %tmp14, half %tmp15, i32 2 44 %tmp17 = extractelement <2 x half> %tmp8, i32 1 45 %tmp18 = insertelement <8 x half> %tmp16, half %tmp17, i32 3 46 %tmp19 = extractelement <2 x half> %tmp9, i32 0 47 %tmp20 = insertelement <8 x half> %tmp18, half %tmp19, i32 4 48 %tmp21 = extractelement <2 x half> %tmp9, i32 1 49 %tmp22 = insertelement <8 x half> %tmp20, half %tmp21, i32 5 50 %tmp23 = extractelement <2 x half> %tmp10, i32 0 51 %tmp24 = insertelement <8 x half> %tmp22, half %tmp23, i32 6 52 %tmp25 = extractelement <2 x half> %tmp10, i32 1 53 %tmp26 = insertelement <8 x half> %tmp24, half %tmp25, i32 7 54 store <8 x half> %tmp26, ptr %c 55 ret void 56} 57