mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Cost Model: Normalize the insert/extract index when splitting types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,5 +29,12 @@ define i32 @insert-extract-at-zero-idx(i32 %arg, float %fl) {
|
||||
;CHECK: cost of 0 {{.*}} insert
|
||||
%J = insertelement <4 x double> undef, double undef, i32 0
|
||||
|
||||
;CHECK: cost of 0 {{.*}} insert
|
||||
%K = insertelement <8 x double> undef, double undef, i32 4
|
||||
;CHECK: cost of 0 {{.*}} insert
|
||||
%L = insertelement <16 x double> undef, double undef, i32 8
|
||||
;CHECK: cost of 1 {{.*}} insert
|
||||
%M = insertelement <16 x double> undef, double undef, i32 9
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user