From: Chandler Carruth Date: Sun, 14 Sep 2014 23:28:12 +0000 (+0000) Subject: [x86] Add an SSE41 mode to this test. Nothing interesting here, its the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59def2bffa4d46170f17f837a7c5265cc540ff2b;p=oota-llvm.git [x86] Add an SSE41 mode to this test. Nothing interesting here, its the same as SSE3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217741 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/vector-shuffle-128-v2.ll b/test/CodeGen/X86/vector-shuffle-128-v2.ll index 62779f6791e..619105f5026 100644 --- a/test/CodeGen/X86/vector-shuffle-128-v2.ll +++ b/test/CodeGen/X86/vector-shuffle-128-v2.ll @@ -1,5 +1,6 @@ ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -x86-experimental-vector-shuffle-lowering | FileCheck %s --check-prefix=ALL --check-prefix=SSE2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+sse3 -x86-experimental-vector-shuffle-lowering | FileCheck %s --check-prefix=ALL --check-prefix=SSE3 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 -mattr=+sse4.1 -x86-experimental-vector-shuffle-lowering | FileCheck %s --check-prefix=ALL --check-prefix=SSE41 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-unknown" @@ -55,6 +56,10 @@ define <2 x double> @shuffle_v2f64_00(<2 x double> %a, <2 x double> %b) { ; SSE3-LABEL: @shuffle_v2f64_00 ; SSE3: unpcklpd {{.*}} # xmm0 = xmm0[0,0] ; SSE3-NEXT: retq +; +; SSE41-LABEL: @shuffle_v2f64_00 +; SSE41: unpcklpd {{.*}} # xmm0 = xmm0[0,0] +; SSE41-NEXT: retq %shuffle = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> ret <2 x double> %shuffle } @@ -82,6 +87,11 @@ define <2 x double> @shuffle_v2f64_22(<2 x double> %a, <2 x double> %b) { ; SSE3: unpcklpd {{.*}} # xmm1 = xmm1[0,0] ; SSE3-NEXT: movapd %xmm1, %xmm0 ; SSE3-NEXT: retq +; +; SSE41-LABEL: @shuffle_v2f64_22 +; SSE41: unpcklpd {{.*}} # xmm1 = xmm1[0,0] +; SSE41-NEXT: movapd %xmm1, %xmm0 +; SSE41-NEXT: retq %shuffle = shufflevector <2 x double> %a, <2 x double> %b, <2 x i32> ret <2 x double> %shuffle } @@ -252,6 +262,11 @@ define <2 x double> @insert_dup_reg_v2f64(double %a) { ; SSE3-LABEL: @insert_dup_reg_v2f64 ; SSE3: unpcklpd {{.*}} # xmm0 = xmm0[0,0] ; SSE3-NEXT: retq +; +; FIXME: This should match movddup as well! +; SSE41-LABEL: @insert_dup_reg_v2f64 +; SSE41: unpcklpd {{.*}} # xmm0 = xmm0[0,0] +; SSE41-NEXT: retq %v = insertelement <2 x double> undef, double %a, i32 0 %shuffle = shufflevector <2 x double> %v, <2 x double> undef, <2 x i32> ret <2 x double> %shuffle @@ -265,6 +280,10 @@ define <2 x double> @insert_dup_mem_v2f64(double* %ptr) { ; SSE3-LABEL: @insert_dup_mem_v2f64 ; SSE3: movddup {{.*}}, %xmm0 ; SSE3-NEXT: retq +; +; SSE41-LABEL: @insert_dup_mem_v2f64 +; SSE41: movddup {{.*}}, %xmm0 +; SSE41-NEXT: retq %a = load double* %ptr %v = insertelement <2 x double> undef, double %a, i32 0 %shuffle = shufflevector <2 x double> %v, <2 x double> undef, <2 x i32>