brintos

brintos / llvm-project-archived public Read only

0
0
Text · 859 B · fcecf31 Raw
23 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; A test for checking PR 96233; RUN: llc -mcpu=corei7 < %s | FileCheck %s4 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: ## %entry10; 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],zero11; 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],zero12; CHECK-NEXT:    pmullw %xmm1, %xmm213; 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, %xmm015; CHECK-NEXT:    retq16entry:17 %binop = mul <4 x i8> %x, %y18 %binop6 = add <4 x i8> %binop, %x19 ret <4 x i8> %binop620}21 22 23