blob: dd7ca733a8fe4088a985974d96b788701d7125b8 [file] [log] [blame]
Chris Lattnerb892eec2009-07-23 04:33:02 +00001; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin9 -mattr=sse41 | FileCheck %s -check-prefix=X32
2; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin9 -mattr=sse41 | FileCheck %s -check-prefix=X64
3
4
5define <4 x i32> @pinsrd(i32 %s, <4 x i32> %tmp) nounwind {
6 %tmp1 = insertelement <4 x i32> %tmp, i32 %s, i32 1
7 ret <4 x i32> %tmp1
8; X32: pinsrd:
9; X32: pinsrd $1, 4(%esp), %xmm0
10
11; X64: pinsrd:
12; X64: pinsrd $1, %edi, %xmm0
13}
14
15define <16 x i8> @pinsrb(i8 %s, <16 x i8> %tmp) nounwind {
16 %tmp1 = insertelement <16 x i8> %tmp, i8 %s, i32 1
17 ret <16 x i8> %tmp1
18; X32: pinsrb:
19; X32: pinsrb $1, 4(%esp), %xmm0
20
21; X64: pinsrb:
22; X64: pinsrb $1, %edi, %xmm0
23}