mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40657 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
538 B
LLVM
17 lines
538 B
LLVM
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | %prcontext {pinsrw \$2} 1 | grep "movl \$1"
|
|
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin -mattr=+sse2 | not grep movss
|
|
|
|
@G = global <4 x float> zeroinitializer
|
|
|
|
define void @test(i32 *%P1, i32* %P2, float *%FP) {
|
|
%T = load float* %FP
|
|
store i32 0, i32* %P1
|
|
|
|
%U = load <4 x float>* @G
|
|
store i32 1, i32* %P1
|
|
%V = insertelement <4 x float> %U, float %T, i32 1
|
|
store <4 x float> %V, <4 x float>* @G
|
|
|
|
ret void
|
|
}
|