[llvm] r217741 - [x86] Add an SSE41 mode to this test. Nothing interesting here, its the
Chandler Carruth
chandlerc at gmail.com
Sun Sep 14 16:28:12 PDT 2014
Author: chandlerc
Date: Sun Sep 14 18:28:12 2014
New Revision: 217741
URL: http://llvm.org/viewvc/llvm-project?rev=217741&view=rev
Log:
[x86] Add an SSE41 mode to this test. Nothing interesting here, its the
same as SSE3.
Modified:
llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll
Modified: llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll?rev=217741&r1=217740&r2=217741&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-shuffle-128-v2.ll Sun Sep 14 18:28:12 2014
@@ -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
; 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> <i32 0, i32 0>
ret <2 x double> %shuffle
}
@@ -82,6 +87,11 @@ define <2 x double> @shuffle_v2f64_22(<2
; 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> <i32 2, i32 2>
ret <2 x double> %shuffle
}
@@ -252,6 +262,11 @@ define <2 x double> @insert_dup_reg_v2f6
; 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> <i32 0, i32 0>
ret <2 x double> %shuffle
@@ -265,6 +280,10 @@ define <2 x double> @insert_dup_mem_v2f6
; 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> <i32 0, i32 0>
More information about the llvm-commits
mailing list