summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/3addr-shufps.ll
blob: 8603df9a7ab62fa4d464417f8af35b0928c5dbd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc < %s -mtriple=x86_64-apple-darwin13 -mcpu=pentium4 | FileCheck %s

define <4 x float> @test1(<4 x i32>, <4 x float> %b) {
  %s = shufflevector <4 x float> %b, <4 x float> undef, <4 x i32> <i32 1, i32 1, i32 2, i32 3>
  ret <4 x float> %s

; We convert shufps -> pshufd here to save a move.
; CHECK-LABEL: test1:
; CHECK:         pshufd $-27, %xmm1, %xmm0
; CHECK-NEXT:    ret
}
OpenPOWER on IntegriCloud