1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; A test for checking PR 9623 3; RUN: llc -mcpu=corei7 < %s | FileCheck %s 4 5target triple = "x86_64-apple-darwin" 6 7define <4 x i8> @foo(<4 x i8> %x, <4 x i8> %y) { 8; CHECK-LABEL: foo: 9; CHECK: ## %bb.0: ## %entry 10; CHECK-NEXT: pmovzxbw {{.*#+}} xmm1 = xmm1[0],zero,xmm1[1],zero,xmm1[2],zero,xmm1[3],zero,xmm1[4],zero,xmm1[5],zero,xmm1[6],zero,xmm1[7],zero 11; CHECK-NEXT: pmovzxbw {{.*#+}} xmm2 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero,xmm0[4],zero,xmm0[5],zero,xmm0[6],zero,xmm0[7],zero 12; CHECK-NEXT: pmullw %xmm1, %xmm2 13; CHECK-NEXT: pshufb {{.*#+}} xmm2 = xmm2[0,2,4,6,u,u,u,u,u,u,u,u,u,u,u,u] 14; CHECK-NEXT: paddb %xmm2, %xmm0 15; CHECK-NEXT: retq 16entry: 17 %binop = mul <4 x i8> %x, %y 18 %binop6 = add <4 x i8> %binop, %x 19 ret <4 x i8> %binop6 20} 21 22 23