mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
Fix another case of <rdar://problem/9184212> that only occurs with code
generated by llvm-gcc, since llvm-gcc uses 2 i64s for passing a 4 x float vector on ARM rather than an i64 array like Clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129878 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -248,3 +248,18 @@ entry:
|
||||
; CHECK: shufflevector <4 x i64> %tmpV2, <4 x i64> undef, <3 x i32> <i32 0, i32 1, i32 2>
|
||||
}
|
||||
|
||||
define <4 x float> @test16(<4 x float> %x, i64 %y0, i64 %y1) {
|
||||
entry:
|
||||
%tmp8 = bitcast <4 x float> undef to <2 x double>
|
||||
%tmp9 = bitcast i64 %y0 to double
|
||||
%tmp10 = insertelement <2 x double> %tmp8, double %tmp9, i32 0
|
||||
%tmp11 = bitcast <2 x double> %tmp10 to <4 x float>
|
||||
%tmp3 = bitcast <4 x float> %tmp11 to <2 x double>
|
||||
%tmp4 = bitcast i64 %y1 to double
|
||||
%tmp5 = insertelement <2 x double> %tmp3, double %tmp4, i32 1
|
||||
%tmp6 = bitcast <2 x double> %tmp5 to <4 x float>
|
||||
ret <4 x float> %tmp6
|
||||
; CHECK: @test16
|
||||
; CHECK-NOT: alloca
|
||||
; CHECK: bitcast <4 x float> %tmp11 to <2 x double>
|
||||
}
|
||||
|
Reference in New Issue
Block a user