]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/X86/peep-vector-extract-concat.ll
Vendor import of llvm release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / CodeGen / X86 / peep-vector-extract-concat.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux -mattr=+sse2,-sse4.1 | FileCheck %s
2 ; CHECK: pshufd $3, %xmm0, %xmm0
3
4 ; RUN: llc < %s -mtriple=x86_64-win32 -mattr=+sse2,-sse4.1 | FileCheck %s -check-prefix=WIN64
5 ; %a is passed indirectly on Win64.
6 ; WIN64: movss   12(%rcx), %xmm0
7
8 define float @foo(<8 x float> %a) nounwind {
9   %c = extractelement <8 x float> %a, i32 3
10   ret float %c
11 }