28 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-macosx10.15 | FileCheck %s3 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), %eax11; CHECK-NEXT: vpinsrw $0, (%rdi), %xmm0, %xmm012; CHECK-NEXT: andl $15, %eax13; CHECK-NEXT: vpextrw $0, %xmm0, (%rsi,%rax,2)14; CHECK-NEXT: retq15 %4 = bitcast ptr %2 to ptr16 %5 = load i64, ptr %4, align 817 %6 = getelementptr inbounds %0, ptr %0, i64 0, i32 018 %7 = load half, ptr %6, align 219 %8 = getelementptr inbounds %1, ptr %1, i64 0, i32 020 %9 = load <16 x half>, ptr %8, align 1621 %10 = trunc i64 %5 to i3222 %11 = insertelement <16 x half> %9, half %7, i32 %1023 store <16 x half> %11, ptr %8, align 1624 ret void25}26 27attributes #0 = { nounwind "target-features"="+f16c" }28