1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=btver2 | FileCheck %s
4 define <2 x i64> @test5(i64* %base, <2 x i64> %src0) {
7 ; CHECK-NEXT: vpinsrq $1, (%rdi), %xmm0, %xmm0
9 %res = call <2 x i64> @llvm.masked.expandload.v2i64(i64* %base, <2 x i1> <i1 false, i1 true>, <2 x i64> %src0)
12 declare <2 x i64> @llvm.masked.expandload.v2i64(i64*, <2 x i1>, <2 x i64>)
14 define void @test11(i64* %base, <2 x i64> %V, <2 x i1> %mask) {
15 ; CHECK-LABEL: test11:
17 ; CHECK-NEXT: vpsllq $63, %xmm1, %xmm1
18 ; CHECK-NEXT: vmovmskpd %xmm1, %eax
19 ; CHECK-NEXT: testb $1, %al
20 ; CHECK-NEXT: jne .LBB1_1
21 ; CHECK-NEXT: # %bb.2: # %else
22 ; CHECK-NEXT: testb $2, %al
23 ; CHECK-NEXT: jne .LBB1_3
24 ; CHECK-NEXT: .LBB1_4: # %else2
26 ; CHECK-NEXT: .LBB1_1: # %cond.store
27 ; CHECK-NEXT: vmovq %xmm0, (%rdi)
28 ; CHECK-NEXT: addq $8, %rdi
29 ; CHECK-NEXT: testb $2, %al
30 ; CHECK-NEXT: je .LBB1_4
31 ; CHECK-NEXT: .LBB1_3: # %cond.store1
32 ; CHECK-NEXT: vpextrq $1, %xmm0, (%rdi)
34 call void @llvm.masked.compressstore.v2i64(<2 x i64> %V, i64* %base, <2 x i1> %mask)
37 declare void @llvm.masked.compressstore.v2i64(<2 x i64>, i64* , <2 x i1>)