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
5 %1 = type <{ <16 x half> }>
7 define void @foo(ptr %0, ptr %1, ptr %2) #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)
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
27 attributes #0 = { nounwind "target-features"="+f16c" }