1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-apple-macosx10.15 | FileCheck %s 3 4%0 = type <{ half }> 5%1 = type <{ <16 x half> }> 6 7define void @foo(ptr %0, ptr %1, ptr %2) #0 { 8; CHECK-LABEL: foo: 9; CHECK: ## %bb.0: 10; CHECK-NEXT: movl (%rdx), %eax 11; CHECK-NEXT: vpinsrw $0, (%rdi), %xmm0, %xmm0 12; CHECK-NEXT: andl $15, %eax 13; CHECK-NEXT: vpextrw $0, %xmm0, (%rsi,%rax,2) 14; CHECK-NEXT: retq 15 %4 = bitcast ptr %2 to ptr 16 %5 = load i64, ptr %4, align 8 17 %6 = getelementptr inbounds %0, ptr %0, i64 0, i32 0 18 %7 = load half, ptr %6, align 2 19 %8 = getelementptr inbounds %1, ptr %1, i64 0, i32 0 20 %9 = load <16 x half>, ptr %8, align 16 21 %10 = trunc i64 %5 to i32 22 %11 = insertelement <16 x half> %9, half %7, i32 %10 23 store <16 x half> %11, ptr %8, align 16 24 ret void 25} 26 27attributes #0 = { nounwind "target-features"="+f16c" } 28