mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
AVX-512: Optimized BUILD_VECTOR pattern;
fixed encoding of VEXTRACTPS instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,4 +15,16 @@ define <16 x i32> @test1(i32* %x) {
|
||||
define <16 x i32> @test2(<16 x i32> %x) {
|
||||
%res = add <16 x i32><i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1>, %x
|
||||
ret <16 x i32>%res
|
||||
}
|
||||
|
||||
; CHECK-LABEL: test3
|
||||
; CHECK: vinsertf128
|
||||
; CHECK: vinsertf64x4
|
||||
; CHECK: ret
|
||||
define <16 x float> @test3(<4 x float> %a) {
|
||||
%b = extractelement <4 x float> %a, i32 2
|
||||
%c = insertelement <16 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float undef, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00>, float %b, i32 5
|
||||
%b1 = extractelement <4 x float> %a, i32 0
|
||||
%c1 = insertelement <16 x float> %c, float %b1, i32 6
|
||||
ret <16 x float>%c1
|
||||
}
|
||||
Reference in New Issue
Block a user