[llvm] r270379 - [X86][SSE] Added extra i8 extract element test
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun May 22 13:35:43 PDT 2016
Author: rksimon
Date: Sun May 22 15:35:42 2016
New Revision: 270379
URL: http://llvm.org/viewvc/llvm-project?rev=270379&view=rev
Log:
[X86][SSE] Added extra i8 extract element test
Modified:
llvm/trunk/test/CodeGen/X86/extractelement-index.ll
Modified: llvm/trunk/test/CodeGen/X86/extractelement-index.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/extractelement-index.ll?rev=270379&r1=270378&r2=270379&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/extractelement-index.ll (original)
+++ llvm/trunk/test/CodeGen/X86/extractelement-index.ll Sun May 22 15:35:42 2016
@@ -28,6 +28,26 @@ define i8 @extractelement_v16i8_1(<16 x
ret i8 %b
}
+define i8 @extractelement_v16i8_11(<16 x i8> %a) nounwind {
+; SSE2-LABEL: extractelement_v16i8_11:
+; SSE2: # BB#0:
+; SSE2-NEXT: movaps %xmm0, -{{[0-9]+}}(%rsp)
+; SSE2-NEXT: movb -{{[0-9]+}}(%rsp), %al
+; SSE2-NEXT: retq
+;
+; SSE41-LABEL: extractelement_v16i8_11:
+; SSE41: # BB#0:
+; SSE41-NEXT: pextrb $11, %xmm0, %eax
+; SSE41-NEXT: retq
+;
+; AVX-LABEL: extractelement_v16i8_11:
+; AVX: # BB#0:
+; AVX-NEXT: vpextrb $11, %xmm0, %eax
+; AVX-NEXT: retq
+ %b = extractelement <16 x i8> %a, i256 11
+ ret i8 %b
+}
+
define i8 @extractelement_v16i8_14(<16 x i8> %a) nounwind {
; SSE2-LABEL: extractelement_v16i8_14:
; SSE2: # BB#0:
More information about the llvm-commits
mailing list