+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; REQUIRES: asserts
; RUN: llc < %s -mattr=+sse3,+sse4.1 -mcpu=penryn -stats 2>&1 | grep "9 machinelicm"
; RUN: llc < %s -mattr=+sse3,+sse4.1 -mcpu=penryn | FileCheck %s
%struct.__vv = type { }
define %struct.__vv* @t(%struct.Key* %desc, i64 %p) nounwind ssp {
+; CHECK-LABEL: t:
+; CHECK: ## %bb.0: ## %entry
+; CHECK-NEXT: pushq %r14
+; CHECK-NEXT: pushq %rbx
+; CHECK-NEXT: pushq %rax
+; CHECK-NEXT: movq %rsi, %r14
+; CHECK-NEXT: movq %rdi, %rbx
+; CHECK-NEXT: orq $2097152, %r14 ## imm = 0x200000
+; CHECK-NEXT: andl $15728640, %r14d ## imm = 0xF00000
+; CHECK-NEXT: jmp LBB0_1
+; CHECK-NEXT: .p2align 4, 0x90
+; CHECK-NEXT: LBB0_3: ## %bb.i
+; CHECK-NEXT: ## in Loop: Header=BB0_1 Depth=1
+; CHECK-NEXT: movd {{.*#+}} xmm0 = mem[0],zero,zero,zero
+; CHECK-NEXT: pinsrd $1, 4, %xmm0
+; CHECK-NEXT: pinsrd $2, 8, %xmm0
+; CHECK-NEXT: movdqa %xmm0, %xmm1
+; CHECK-NEXT: pblendw {{.*#+}} xmm1 = xmm1[0],mem[1],xmm1[2],mem[3],xmm1[4],mem[5],xmm1[6],mem[7]
+; CHECK-NEXT: psrld $16, %xmm0
+; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0],mem[1],xmm0[2],mem[3],xmm0[4],mem[5],xmm0[6],mem[7]
+; CHECK-NEXT: addps {{.*}}(%rip), %xmm0
+; CHECK-NEXT: addps %xmm1, %xmm0
+; CHECK-NEXT: movaps %xmm0, 0
+; CHECK-NEXT: LBB0_1: ## %bb4
+; CHECK-NEXT: ## =>This Inner Loop Header: Depth=1
+; CHECK-NEXT: xorl %eax, %eax
+; CHECK-NEXT: callq _xxGetOffsetForCode
+; CHECK-NEXT: xorl %esi, %esi
+; CHECK-NEXT: xorl %eax, %eax
+; CHECK-NEXT: movq %rbx, %rdi
+; CHECK-NEXT: callq _xxCalculateMidType
+; CHECK-NEXT: cmpl $1, %eax
+; CHECK-NEXT: jne LBB0_1
+; CHECK-NEXT: ## %bb.2: ## %bb26
+; CHECK-NEXT: ## in Loop: Header=BB0_1 Depth=1
+; CHECK-NEXT: cmpq $1048576, %r14 ## imm = 0x100000
+; CHECK-NEXT: jne LBB0_1
+; CHECK-NEXT: jmp LBB0_3
entry:
br label %bb4
bb4: ; preds = %bb.i, %bb26, %bb4, %entry
-; CHECK: %bb4
-; CHECK: xorl
-; CHECK: callq
-; CHECK: xorl
-; CHECK: xorl
-; CHECK: movq
%0 = call i32 (...) @xxGetOffsetForCode(i32 undef) nounwind ; <i32> [#uses=0]
%ins = or i64 %p, 2097152 ; <i64> [#uses=1]