From 2003e03045b6b89de455afda677198bb8b8b36b7 Mon Sep 17 00:00:00 2001 From: Nadav Rotem Date: Tue, 24 Apr 2012 19:57:38 +0000 Subject: [PATCH] Fix the testcase. We do expect two vblendw on XMMs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155477 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/avx2-shuffle.ll | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/CodeGen/X86/avx2-shuffle.ll b/test/CodeGen/X86/avx2-shuffle.ll index 218e10b361f..ad75e93c9fa 100644 --- a/test/CodeGen/X86/avx2-shuffle.ll +++ b/test/CodeGen/X86/avx2-shuffle.ll @@ -1,13 +1,14 @@ ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -mattr=+avx2 | FileCheck %s -; Make sure that we don't match this shuffle using the vpblendw instruction. -; The mask for the vpblendw instruction needs to be identical for both halves -; of the YMM. +; Make sure that we don't match this shuffle using the vpblendw YMM instruction. +; The mask for the vpblendw instruction needs to be identical for both halves +; of the YMM. Need to use two vpblendw instructions. ; CHECK: blendw1 -; CHECK-NOT: vpblendw +; CHECK: vpblendw +; CHECK: vpblendw ; CHECK: ret define <16 x i16> @blendw1(<16 x i16> %a, <16 x i16> %b) nounwind alwaysinline { - %t = shufflevector <16 x i16> %a, <16 x i16> %b, <16 x i32> + %t = shufflevector <16 x i16> %a, <16 x i16> %b, <16 x i32> ret <16 x i16> %t }