53 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin -mattr=+mmx,+sse2 | FileCheck %s --check-prefix=X86-643;4; On Darwin x86-64, v8i8, v4i16, v2i32 values are passed in XMM[0-7].5; On Darwin x86-64, v1i64 values are passed in 64-bit GPRs.6 7@g_v8qi = external global <8 x i8>8 9define void @t3() nounwind {10; X86-64-LABEL: t3:11; X86-64: ## %bb.0:12; X86-64-NEXT: movq _g_v8qi@GOTPCREL(%rip), %rax13; X86-64-NEXT: movq (%rax), %rdi14; X86-64-NEXT: xorl %eax, %eax15; X86-64-NEXT: jmp _pass_v8qi ## TAILCALL16 %tmp3 = load <8 x i8>, ptr @g_v8qi, align 817 %tmp3a = bitcast <8 x i8> %tmp3 to <1 x i64>18 %tmp4 = tail call i32 (...) @pass_v8qi( <1 x i64> %tmp3a ) nounwind19 ret void20}21 22define void @t4(<1 x i64> %v1, <1 x i64> %v2) nounwind {23; X86-64-LABEL: t4:24; X86-64: ## %bb.0:25; X86-64-NEXT: movq %rdi, %xmm026; X86-64-NEXT: movq %rsi, %xmm127; X86-64-NEXT: paddb %xmm0, %xmm128; X86-64-NEXT: movq %xmm1, %rdi29; X86-64-NEXT: xorl %eax, %eax30; X86-64-NEXT: jmp _pass_v8qi ## TAILCALL31 %v1a = bitcast <1 x i64> %v1 to <8 x i8>32 %v2b = bitcast <1 x i64> %v2 to <8 x i8>33 %tmp3 = add <8 x i8> %v1a, %v2b34 %tmp3a = bitcast <8 x i8> %tmp3 to <1 x i64>35 %tmp4 = tail call i32 (...) @pass_v8qi( <1 x i64> %tmp3a ) nounwind36 ret void37}38 39define void @t5() nounwind {40; X86-64-LABEL: t5:41; X86-64: ## %bb.0:42; X86-64-NEXT: pushq %rax43; X86-64-NEXT: xorl %edi, %edi44; X86-64-NEXT: callq _pass_v1di45; X86-64-NEXT: popq %rax46; X86-64-NEXT: retq47 call void @pass_v1di( <1 x i64> zeroinitializer )48 ret void49}50 51declare i32 @pass_v8qi(...)52declare void @pass_v1di(<1 x i64>)53