mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add vmov.f32 to materialize f32 immediate splats which cannot be handled by
integer variants. rdar://10437054 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144608 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -353,3 +353,21 @@ define void @noTruncStore(<4 x i32>* %a, <4 x i16>* %b) nounwind {
|
||||
store <4 x i16> %tmp2, <4 x i16>* %b, align 8
|
||||
ret void
|
||||
}
|
||||
|
||||
; Use vmov.f32 to materialize f32 immediate splats
|
||||
; rdar://10437054
|
||||
define void @v_mov_v2f32(<2 x float>* nocapture %p) nounwind {
|
||||
entry:
|
||||
;CHECK: v_mov_v2f32:
|
||||
;CHECK: vmov.f32 d{{.*}}, #-1.600000e+01
|
||||
store <2 x float> <float -1.600000e+01, float -1.600000e+01>, <2 x float>* %p, align 4
|
||||
ret void
|
||||
}
|
||||
|
||||
define void @v_mov_v4f32(<4 x float>* nocapture %p) nounwind {
|
||||
entry:
|
||||
;CHECK: v_mov_v4f32:
|
||||
;CHECK: vmov.f32 q{{.*}}, #3.100000e+01
|
||||
store <4 x float> <float 3.100000e+01, float 3.100000e+01, float 3.100000e+01, float 3.100000e+01>, <4 x float>* %p, align 4
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user