mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
1e5cdea9d7
testcases to make sure it's being generated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76843 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
547 B
LLVM
13 lines
547 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep insertps | count 2
|
|
|
|
define <4 x float> @t1(<4 x float> %t1, <4 x float> %t2) nounwind {
|
|
%tmp1 = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %t1, <4 x float> %t2, i32 1) nounwind readnone
|
|
ret <4 x float> %tmp1
|
|
}
|
|
|
|
declare <4 x float> @llvm.x86.sse41.insertps(<4 x float>, <4 x float>, i32) nounwind readnone
|
|
|
|
define <4 x float> @t2(<4 x float> %t1, float %t2) nounwind {
|
|
%tmp1 = insertelement <4 x float> %t1, float %t2, i32 0
|
|
ret <4 x float> %tmp1
|
|
} |