1 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
2 ; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=cortex-a9 | FileCheck %s --check-prefix=CHECK-NEON
3 ; RUN: opt -cost-model -analyze -mtriple=thumbv8.1-m.main-none-eabi -mattr=+mve.fp < %s | FileCheck %s --check-prefix=CHECK-MVE
6 ; CHECK-NEON-LABEL: 'casts'
7 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r0 = sext i1 undef to i8
8 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r1 = zext i1 undef to i8
9 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r2 = sext i1 undef to i16
10 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r3 = zext i1 undef to i16
11 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r4 = sext i1 undef to i32
12 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r5 = zext i1 undef to i32
13 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r6 = sext i1 undef to i64
14 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r7 = zext i1 undef to i64
15 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r8 = trunc i8 undef to i1
16 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r9 = sext i8 undef to i16
17 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r10 = zext i8 undef to i16
18 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r11 = sext i8 undef to i32
19 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r12 = zext i8 undef to i32
20 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r13 = sext i8 undef to i64
21 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r14 = zext i8 undef to i64
22 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r15 = trunc i16 undef to i1
23 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r16 = trunc i16 undef to i8
24 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r17 = sext i16 undef to i32
25 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r18 = zext i16 undef to i32
26 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r19 = sext i16 undef to i64
27 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r20 = zext i16 undef to i64
28 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r21 = trunc i32 undef to i1
29 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r22 = trunc i32 undef to i8
30 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r23 = trunc i32 undef to i16
31 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r24 = sext i32 undef to i64
32 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r25 = zext i32 undef to i64
33 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r26 = trunc i64 undef to i1
34 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r27 = trunc i64 undef to i8
35 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r28 = trunc i64 undef to i16
36 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r29 = trunc i64 undef to i32
37 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r30 = fptoui float undef to i1
38 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r31 = fptosi float undef to i1
39 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r32 = fptoui float undef to i8
40 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r33 = fptosi float undef to i8
41 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r34 = fptoui float undef to i16
42 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r35 = fptosi float undef to i16
43 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r36 = fptoui float undef to i32
44 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r37 = fptosi float undef to i32
45 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r38 = fptoui float undef to i64
46 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r39 = fptosi float undef to i64
47 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r40 = fptoui double undef to i1
48 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r41 = fptosi double undef to i1
49 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r42 = fptoui double undef to i8
50 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r43 = fptosi double undef to i8
51 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r44 = fptoui double undef to i16
52 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r45 = fptosi double undef to i16
53 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r46 = fptoui double undef to i32
54 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r47 = fptosi double undef to i32
55 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r48 = fptoui double undef to i64
56 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r49 = fptosi double undef to i64
57 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r50 = sitofp i1 undef to float
58 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r51 = uitofp i1 undef to float
59 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r52 = sitofp i1 undef to double
60 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r53 = uitofp i1 undef to double
61 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r54 = sitofp i8 undef to float
62 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r55 = uitofp i8 undef to float
63 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r56 = sitofp i8 undef to double
64 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r57 = uitofp i8 undef to double
65 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r58 = sitofp i16 undef to float
66 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r59 = uitofp i16 undef to float
67 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r60 = sitofp i16 undef to double
68 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r61 = uitofp i16 undef to double
69 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r62 = sitofp i32 undef to float
70 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r63 = uitofp i32 undef to float
71 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r64 = sitofp i32 undef to double
72 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r65 = uitofp i32 undef to double
73 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r66 = sitofp i64 undef to float
74 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r67 = uitofp i64 undef to float
75 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r68 = sitofp i64 undef to double
76 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r69 = uitofp i64 undef to double
77 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r70 = sext <8 x i8> undef to <8 x i32>
78 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %r71 = sext <16 x i8> undef to <16 x i32>
79 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r72 = zext <8 x i8> undef to <8 x i32>
80 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %r73 = zext <16 x i8> undef to <16 x i32>
81 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %rext_0 = sext <8 x i8> undef to <8 x i64>
82 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %rext_1 = zext <8 x i8> undef to <8 x i64>
83 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %rext_2 = sext <8 x i16> undef to <8 x i64>
84 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %rext_3 = zext <8 x i16> undef to <8 x i64>
85 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %rext_4 = sext <4 x i16> undef to <4 x i64>
86 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %rext_5 = zext <4 x i16> undef to <4 x i64>
87 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r74 = trunc <8 x i32> undef to <8 x i8>
88 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %r75 = trunc <16 x i32> undef to <16 x i8>
89 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r80 = fptrunc double undef to float
90 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r81 = fptrunc <2 x double> undef to <2 x float>
91 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r82 = fptrunc <4 x double> undef to <4 x float>
92 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r83 = fptrunc <8 x double> undef to <8 x float>
93 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r84 = fptrunc <16 x double> undef to <16 x float>
94 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r85 = fpext float undef to double
95 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r86 = fpext <2 x float> undef to <2 x double>
96 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r87 = fpext <4 x float> undef to <4 x double>
97 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r88 = fpext <8 x float> undef to <8 x double>
98 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r89 = fpext <16 x float> undef to <16 x double>
99 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r90 = fptoui <2 x float> undef to <2 x i1>
100 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r91 = fptosi <2 x float> undef to <2 x i1>
101 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r92 = fptoui <2 x float> undef to <2 x i8>
102 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r93 = fptosi <2 x float> undef to <2 x i8>
103 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r94 = fptoui <2 x float> undef to <2 x i16>
104 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r95 = fptosi <2 x float> undef to <2 x i16>
105 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r96 = fptoui <2 x float> undef to <2 x i32>
106 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r97 = fptosi <2 x float> undef to <2 x i32>
107 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r98 = fptoui <2 x float> undef to <2 x i64>
108 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r99 = fptosi <2 x float> undef to <2 x i64>
109 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r100 = fptoui <2 x double> undef to <2 x i1>
110 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r101 = fptosi <2 x double> undef to <2 x i1>
111 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r102 = fptoui <2 x double> undef to <2 x i8>
112 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r103 = fptosi <2 x double> undef to <2 x i8>
113 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r104 = fptoui <2 x double> undef to <2 x i16>
114 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 16 for instruction: %r105 = fptosi <2 x double> undef to <2 x i16>
115 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r106 = fptoui <2 x double> undef to <2 x i32>
116 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r107 = fptosi <2 x double> undef to <2 x i32>
117 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r108 = fptoui <2 x double> undef to <2 x i64>
118 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r109 = fptosi <2 x double> undef to <2 x i64>
119 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r110 = fptoui <4 x float> undef to <4 x i1>
120 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 32 for instruction: %r111 = fptosi <4 x float> undef to <4 x i1>
121 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r112 = fptoui <4 x float> undef to <4 x i8>
122 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r113 = fptosi <4 x float> undef to <4 x i8>
123 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r114 = fptoui <4 x float> undef to <4 x i16>
124 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r115 = fptosi <4 x float> undef to <4 x i16>
125 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r116 = fptoui <4 x float> undef to <4 x i32>
126 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r117 = fptosi <4 x float> undef to <4 x i32>
127 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r118 = fptoui <4 x float> undef to <4 x i64>
128 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r119 = fptosi <4 x float> undef to <4 x i64>
129 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r120 = fptoui <4 x double> undef to <4 x i1>
130 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r121 = fptosi <4 x double> undef to <4 x i1>
131 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r122 = fptoui <4 x double> undef to <4 x i8>
132 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r123 = fptosi <4 x double> undef to <4 x i8>
133 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r124 = fptoui <4 x double> undef to <4 x i16>
134 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 33 for instruction: %r125 = fptosi <4 x double> undef to <4 x i16>
135 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %r126 = fptoui <4 x double> undef to <4 x i32>
136 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %r127 = fptosi <4 x double> undef to <4 x i32>
137 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r128 = fptoui <4 x double> undef to <4 x i64>
138 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r129 = fptosi <4 x double> undef to <4 x i64>
139 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r130 = fptoui <8 x float> undef to <8 x i1>
140 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 65 for instruction: %r131 = fptosi <8 x float> undef to <8 x i1>
141 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r132 = fptoui <8 x float> undef to <8 x i8>
142 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r133 = fptosi <8 x float> undef to <8 x i8>
143 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r134 = fptoui <8 x float> undef to <8 x i16>
144 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r135 = fptosi <8 x float> undef to <8 x i16>
145 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r136 = fptoui <8 x float> undef to <8 x i32>
146 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r137 = fptosi <8 x float> undef to <8 x i32>
147 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r138 = fptoui <8 x float> undef to <8 x i64>
148 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r139 = fptosi <8 x float> undef to <8 x i64>
149 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r140 = fptoui <8 x double> undef to <8 x i1>
150 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r141 = fptosi <8 x double> undef to <8 x i1>
151 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r142 = fptoui <8 x double> undef to <8 x i8>
152 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r143 = fptosi <8 x double> undef to <8 x i8>
153 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r144 = fptoui <8 x double> undef to <8 x i16>
154 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 67 for instruction: %r145 = fptosi <8 x double> undef to <8 x i16>
155 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %r146 = fptoui <8 x double> undef to <8 x i32>
156 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %r147 = fptosi <8 x double> undef to <8 x i32>
157 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r148 = fptoui <8 x double> undef to <8 x i64>
158 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r149 = fptosi <8 x double> undef to <8 x i64>
159 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r150 = fptoui <16 x float> undef to <16 x i1>
160 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 131 for instruction: %r151 = fptosi <16 x float> undef to <16 x i1>
161 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r152 = fptoui <16 x float> undef to <16 x i8>
162 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r153 = fptosi <16 x float> undef to <16 x i8>
163 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r154 = fptoui <16 x float> undef to <16 x i16>
164 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r155 = fptosi <16 x float> undef to <16 x i16>
165 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r156 = fptoui <16 x float> undef to <16 x i32>
166 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r157 = fptosi <16 x float> undef to <16 x i32>
167 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 263 for instruction: %r158 = fptoui <16 x float> undef to <16 x i64>
168 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 263 for instruction: %r159 = fptosi <16 x float> undef to <16 x i64>
169 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r160 = fptoui <16 x double> undef to <16 x i1>
170 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r161 = fptosi <16 x double> undef to <16 x i1>
171 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r162 = fptoui <16 x double> undef to <16 x i8>
172 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r163 = fptosi <16 x double> undef to <16 x i8>
173 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r164 = fptoui <16 x double> undef to <16 x i16>
174 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 135 for instruction: %r165 = fptosi <16 x double> undef to <16 x i16>
175 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %r166 = fptoui <16 x double> undef to <16 x i32>
176 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 23 for instruction: %r167 = fptosi <16 x double> undef to <16 x i32>
177 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 263 for instruction: %r168 = fptoui <16 x double> undef to <16 x i64>
178 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 263 for instruction: %r169 = fptosi <16 x double> undef to <16 x i64>
179 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r170 = uitofp <2 x i1> undef to <2 x float>
180 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r171 = sitofp <2 x i1> undef to <2 x float>
181 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r172 = uitofp <2 x i8> undef to <2 x float>
182 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r173 = sitofp <2 x i8> undef to <2 x float>
183 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r174 = uitofp <2 x i16> undef to <2 x float>
184 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r175 = sitofp <2 x i16> undef to <2 x float>
185 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r176 = uitofp <2 x i32> undef to <2 x float>
186 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r177 = sitofp <2 x i32> undef to <2 x float>
187 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %r178 = uitofp <2 x i64> undef to <2 x float>
188 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 28 for instruction: %r179 = sitofp <2 x i64> undef to <2 x float>
189 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r180 = uitofp <2 x i1> undef to <2 x double>
190 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r181 = sitofp <2 x i1> undef to <2 x double>
191 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r182 = uitofp <2 x i8> undef to <2 x double>
192 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r183 = sitofp <2 x i8> undef to <2 x double>
193 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r184 = uitofp <2 x i16> undef to <2 x double>
194 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r185 = sitofp <2 x i16> undef to <2 x double>
195 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r186 = uitofp <2 x i32> undef to <2 x double>
196 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r187 = sitofp <2 x i32> undef to <2 x double>
197 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 24 for instruction: %r188 = uitofp <2 x i64> undef to <2 x double>
198 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 24 for instruction: %r189 = sitofp <2 x i64> undef to <2 x double>
199 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r190 = uitofp <4 x i1> undef to <4 x float>
200 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r191 = sitofp <4 x i1> undef to <4 x float>
201 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r192 = uitofp <4 x i8> undef to <4 x float>
202 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r193 = sitofp <4 x i8> undef to <4 x float>
203 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r194 = uitofp <4 x i16> undef to <4 x float>
204 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r195 = sitofp <4 x i16> undef to <4 x float>
205 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r196 = uitofp <4 x i32> undef to <4 x float>
206 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r197 = sitofp <4 x i32> undef to <4 x float>
207 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 57 for instruction: %r198 = uitofp <4 x i64> undef to <4 x float>
208 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 57 for instruction: %r199 = sitofp <4 x i64> undef to <4 x float>
209 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %r200 = uitofp <4 x i1> undef to <4 x double>
210 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 17 for instruction: %r201 = sitofp <4 x i1> undef to <4 x double>
211 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %r202 = uitofp <4 x i8> undef to <4 x double>
212 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 9 for instruction: %r203 = sitofp <4 x i8> undef to <4 x double>
213 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r204 = uitofp <4 x i16> undef to <4 x double>
214 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r205 = sitofp <4 x i16> undef to <4 x double>
215 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %r206 = uitofp <4 x i32> undef to <4 x double>
216 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %r207 = sitofp <4 x i32> undef to <4 x double>
217 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 49 for instruction: %r208 = uitofp <4 x i64> undef to <4 x double>
218 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 49 for instruction: %r209 = sitofp <4 x i64> undef to <4 x double>
219 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r210 = uitofp <8 x i1> undef to <8 x float>
220 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r211 = sitofp <8 x i1> undef to <8 x float>
221 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r212 = uitofp <8 x i8> undef to <8 x float>
222 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r213 = sitofp <8 x i8> undef to <8 x float>
223 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r214 = uitofp <8 x i16> undef to <8 x float>
224 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r215 = sitofp <8 x i16> undef to <8 x float>
225 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r216 = uitofp <8 x i32> undef to <8 x float>
226 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r217 = sitofp <8 x i32> undef to <8 x float>
227 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 115 for instruction: %r218 = uitofp <8 x i64> undef to <8 x float>
228 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 115 for instruction: %r219 = sitofp <8 x i64> undef to <8 x float>
229 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %r220 = uitofp <8 x i1> undef to <8 x double>
230 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 35 for instruction: %r221 = sitofp <8 x i1> undef to <8 x double>
231 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %r222 = uitofp <8 x i8> undef to <8 x double>
232 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 19 for instruction: %r223 = sitofp <8 x i8> undef to <8 x double>
233 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r224 = uitofp <8 x i16> undef to <8 x double>
234 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r225 = sitofp <8 x i16> undef to <8 x double>
235 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r226 = uitofp <8 x i16> undef to <8 x double>
236 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r227 = sitofp <8 x i16> undef to <8 x double>
237 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 99 for instruction: %r228 = uitofp <8 x i64> undef to <8 x double>
238 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 99 for instruction: %r229 = sitofp <8 x i64> undef to <8 x double>
239 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r230 = uitofp <16 x i1> undef to <16 x float>
240 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r231 = sitofp <16 x i1> undef to <16 x float>
241 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r232 = uitofp <16 x i8> undef to <16 x float>
242 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r233 = sitofp <16 x i8> undef to <16 x float>
243 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r234 = uitofp <16 x i16> undef to <16 x float>
244 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 8 for instruction: %r235 = sitofp <16 x i16> undef to <16 x float>
245 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r236 = uitofp <16 x i32> undef to <16 x float>
246 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r237 = sitofp <16 x i32> undef to <16 x float>
247 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 231 for instruction: %r238 = uitofp <16 x i64> undef to <16 x float>
248 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 231 for instruction: %r239 = sitofp <16 x i64> undef to <16 x float>
249 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 71 for instruction: %r240 = uitofp <16 x i1> undef to <16 x double>
250 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 71 for instruction: %r241 = sitofp <16 x i1> undef to <16 x double>
251 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 39 for instruction: %r242 = uitofp <16 x i8> undef to <16 x double>
252 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 39 for instruction: %r243 = sitofp <16 x i8> undef to <16 x double>
253 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %r244 = uitofp <16 x i16> undef to <16 x double>
254 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %r245 = sitofp <16 x i16> undef to <16 x double>
255 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %r246 = uitofp <16 x i16> undef to <16 x double>
256 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 31 for instruction: %r247 = sitofp <16 x i16> undef to <16 x double>
257 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 199 for instruction: %r248 = uitofp <16 x i64> undef to <16 x double>
258 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 199 for instruction: %r249 = sitofp <16 x i64> undef to <16 x double>
259 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i32 undef
261 ; CHECK-MVE-LABEL: 'casts'
262 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r0 = sext i1 undef to i8
263 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r1 = zext i1 undef to i8
264 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r2 = sext i1 undef to i16
265 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r3 = zext i1 undef to i16
266 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r4 = sext i1 undef to i32
267 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r5 = zext i1 undef to i32
268 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r6 = sext i1 undef to i64
269 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r7 = zext i1 undef to i64
270 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r8 = trunc i8 undef to i1
271 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r9 = sext i8 undef to i16
272 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r10 = zext i8 undef to i16
273 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r11 = sext i8 undef to i32
274 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r12 = zext i8 undef to i32
275 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r13 = sext i8 undef to i64
276 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r14 = zext i8 undef to i64
277 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r15 = trunc i16 undef to i1
278 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r16 = trunc i16 undef to i8
279 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r17 = sext i16 undef to i32
280 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r18 = zext i16 undef to i32
281 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r19 = sext i16 undef to i64
282 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r20 = zext i16 undef to i64
283 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r21 = trunc i32 undef to i1
284 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r22 = trunc i32 undef to i8
285 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r23 = trunc i32 undef to i16
286 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r24 = sext i32 undef to i64
287 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r25 = zext i32 undef to i64
288 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r26 = trunc i64 undef to i1
289 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r27 = trunc i64 undef to i8
290 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r28 = trunc i64 undef to i16
291 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r29 = trunc i64 undef to i32
292 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r30 = fptoui float undef to i1
293 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r31 = fptosi float undef to i1
294 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r32 = fptoui float undef to i8
295 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r33 = fptosi float undef to i8
296 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r34 = fptoui float undef to i16
297 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r35 = fptosi float undef to i16
298 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r36 = fptoui float undef to i32
299 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r37 = fptosi float undef to i32
300 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r38 = fptoui float undef to i64
301 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r39 = fptosi float undef to i64
302 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r40 = fptoui double undef to i1
303 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r41 = fptosi double undef to i1
304 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r42 = fptoui double undef to i8
305 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r43 = fptosi double undef to i8
306 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r44 = fptoui double undef to i16
307 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r45 = fptosi double undef to i16
308 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r46 = fptoui double undef to i32
309 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r47 = fptosi double undef to i32
310 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r48 = fptoui double undef to i64
311 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r49 = fptosi double undef to i64
312 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r50 = sitofp i1 undef to float
313 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r51 = uitofp i1 undef to float
314 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r52 = sitofp i1 undef to double
315 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r53 = uitofp i1 undef to double
316 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r54 = sitofp i8 undef to float
317 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r55 = uitofp i8 undef to float
318 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r56 = sitofp i8 undef to double
319 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r57 = uitofp i8 undef to double
320 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r58 = sitofp i16 undef to float
321 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r59 = uitofp i16 undef to float
322 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r60 = sitofp i16 undef to double
323 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r61 = uitofp i16 undef to double
324 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r62 = sitofp i32 undef to float
325 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r63 = uitofp i32 undef to float
326 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r64 = sitofp i32 undef to double
327 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r65 = uitofp i32 undef to double
328 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r66 = sitofp i64 undef to float
329 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r67 = uitofp i64 undef to float
330 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r68 = sitofp i64 undef to double
331 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 4 for instruction: %r69 = uitofp i64 undef to double
332 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r70 = sext <8 x i8> undef to <8 x i32>
333 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r71 = sext <16 x i8> undef to <16 x i32>
334 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r72 = zext <8 x i8> undef to <8 x i32>
335 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r73 = zext <16 x i8> undef to <16 x i32>
336 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %rext_0 = sext <8 x i8> undef to <8 x i64>
337 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %rext_1 = zext <8 x i8> undef to <8 x i64>
338 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 11 for instruction: %rext_2 = sext <8 x i16> undef to <8 x i64>
339 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %rext_3 = zext <8 x i16> undef to <8 x i64>
340 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 5 for instruction: %rext_4 = sext <4 x i16> undef to <4 x i64>
341 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %rext_5 = zext <4 x i16> undef to <4 x i64>
342 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r74 = trunc <8 x i32> undef to <8 x i8>
343 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r75 = trunc <16 x i32> undef to <16 x i8>
344 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r80 = fptrunc double undef to float
345 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r81 = fptrunc <2 x double> undef to <2 x float>
346 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r82 = fptrunc <4 x double> undef to <4 x float>
347 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r83 = fptrunc <8 x double> undef to <8 x float>
348 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r84 = fptrunc <16 x double> undef to <16 x float>
349 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r85 = fpext float undef to double
350 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 6 for instruction: %r86 = fpext <2 x float> undef to <2 x double>
351 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 13 for instruction: %r87 = fpext <4 x float> undef to <4 x double>
352 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 27 for instruction: %r88 = fpext <8 x float> undef to <8 x double>
353 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 55 for instruction: %r89 = fpext <16 x float> undef to <16 x double>
354 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r90 = fptoui <2 x float> undef to <2 x i1>
355 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r91 = fptosi <2 x float> undef to <2 x i1>
356 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r92 = fptoui <2 x float> undef to <2 x i8>
357 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r93 = fptosi <2 x float> undef to <2 x i8>
358 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r94 = fptoui <2 x float> undef to <2 x i16>
359 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r95 = fptosi <2 x float> undef to <2 x i16>
360 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r96 = fptoui <2 x float> undef to <2 x i32>
361 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r97 = fptosi <2 x float> undef to <2 x i32>
362 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r98 = fptoui <2 x float> undef to <2 x i64>
363 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r99 = fptosi <2 x float> undef to <2 x i64>
364 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r100 = fptoui <2 x double> undef to <2 x i1>
365 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r101 = fptosi <2 x double> undef to <2 x i1>
366 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r102 = fptoui <2 x double> undef to <2 x i8>
367 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r103 = fptosi <2 x double> undef to <2 x i8>
368 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r104 = fptoui <2 x double> undef to <2 x i16>
369 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r105 = fptosi <2 x double> undef to <2 x i16>
370 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r106 = fptoui <2 x double> undef to <2 x i32>
371 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r107 = fptosi <2 x double> undef to <2 x i32>
372 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r108 = fptoui <2 x double> undef to <2 x i64>
373 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 14 for instruction: %r109 = fptosi <2 x double> undef to <2 x i64>
374 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r110 = fptoui <4 x float> undef to <4 x i1>
375 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r111 = fptosi <4 x float> undef to <4 x i1>
376 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r112 = fptoui <4 x float> undef to <4 x i8>
377 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r113 = fptosi <4 x float> undef to <4 x i8>
378 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r114 = fptoui <4 x float> undef to <4 x i16>
379 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r115 = fptosi <4 x float> undef to <4 x i16>
380 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r116 = fptoui <4 x float> undef to <4 x i32>
381 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r117 = fptosi <4 x float> undef to <4 x i32>
382 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r118 = fptoui <4 x float> undef to <4 x i64>
383 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r119 = fptosi <4 x float> undef to <4 x i64>
384 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r120 = fptoui <4 x double> undef to <4 x i1>
385 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r121 = fptosi <4 x double> undef to <4 x i1>
386 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r122 = fptoui <4 x double> undef to <4 x i8>
387 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r123 = fptosi <4 x double> undef to <4 x i8>
388 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r124 = fptoui <4 x double> undef to <4 x i16>
389 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r125 = fptosi <4 x double> undef to <4 x i16>
390 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r126 = fptoui <4 x double> undef to <4 x i32>
391 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r127 = fptosi <4 x double> undef to <4 x i32>
392 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r128 = fptoui <4 x double> undef to <4 x i64>
393 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 29 for instruction: %r129 = fptosi <4 x double> undef to <4 x i64>
394 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r130 = fptoui <8 x float> undef to <8 x i1>
395 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r131 = fptosi <8 x float> undef to <8 x i1>
396 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r132 = fptoui <8 x float> undef to <8 x i8>
397 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r133 = fptosi <8 x float> undef to <8 x i8>
398 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r134 = fptoui <8 x float> undef to <8 x i16>
399 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r135 = fptosi <8 x float> undef to <8 x i16>
400 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r136 = fptoui <8 x float> undef to <8 x i32>
401 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r137 = fptosi <8 x float> undef to <8 x i32>
402 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r138 = fptoui <8 x float> undef to <8 x i64>
403 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r139 = fptosi <8 x float> undef to <8 x i64>
404 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r140 = fptoui <8 x double> undef to <8 x i1>
405 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r141 = fptosi <8 x double> undef to <8 x i1>
406 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r142 = fptoui <8 x double> undef to <8 x i8>
407 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r143 = fptosi <8 x double> undef to <8 x i8>
408 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r144 = fptoui <8 x double> undef to <8 x i16>
409 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r145 = fptosi <8 x double> undef to <8 x i16>
410 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r146 = fptoui <8 x double> undef to <8 x i32>
411 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r147 = fptosi <8 x double> undef to <8 x i32>
412 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r148 = fptoui <8 x double> undef to <8 x i64>
413 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 59 for instruction: %r149 = fptosi <8 x double> undef to <8 x i64>
414 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r150 = fptoui <16 x float> undef to <16 x i1>
415 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r151 = fptosi <16 x float> undef to <16 x i1>
416 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r152 = fptoui <16 x float> undef to <16 x i8>
417 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r153 = fptosi <16 x float> undef to <16 x i8>
418 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r154 = fptoui <16 x float> undef to <16 x i16>
419 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r155 = fptosi <16 x float> undef to <16 x i16>
420 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r156 = fptoui <16 x float> undef to <16 x i32>
421 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r157 = fptosi <16 x float> undef to <16 x i32>
422 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r158 = fptoui <16 x float> undef to <16 x i64>
423 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r159 = fptosi <16 x float> undef to <16 x i64>
424 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r160 = fptoui <16 x double> undef to <16 x i1>
425 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r161 = fptosi <16 x double> undef to <16 x i1>
426 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r162 = fptoui <16 x double> undef to <16 x i8>
427 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r163 = fptosi <16 x double> undef to <16 x i8>
428 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r164 = fptoui <16 x double> undef to <16 x i16>
429 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r165 = fptosi <16 x double> undef to <16 x i16>
430 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r166 = fptoui <16 x double> undef to <16 x i32>
431 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r167 = fptosi <16 x double> undef to <16 x i32>
432 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r168 = fptoui <16 x double> undef to <16 x i64>
433 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 119 for instruction: %r169 = fptosi <16 x double> undef to <16 x i64>
434 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r170 = uitofp <2 x i1> undef to <2 x float>
435 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r171 = sitofp <2 x i1> undef to <2 x float>
436 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r172 = uitofp <2 x i8> undef to <2 x float>
437 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r173 = sitofp <2 x i8> undef to <2 x float>
438 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r174 = uitofp <2 x i16> undef to <2 x float>
439 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r175 = sitofp <2 x i16> undef to <2 x float>
440 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r176 = uitofp <2 x i32> undef to <2 x float>
441 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r177 = sitofp <2 x i32> undef to <2 x float>
442 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r178 = uitofp <2 x i64> undef to <2 x float>
443 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r179 = sitofp <2 x i64> undef to <2 x float>
444 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r180 = uitofp <2 x i1> undef to <2 x double>
445 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r181 = sitofp <2 x i1> undef to <2 x double>
446 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r182 = uitofp <2 x i8> undef to <2 x double>
447 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r183 = sitofp <2 x i8> undef to <2 x double>
448 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r184 = uitofp <2 x i16> undef to <2 x double>
449 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r185 = sitofp <2 x i16> undef to <2 x double>
450 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r186 = uitofp <2 x i32> undef to <2 x double>
451 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r187 = sitofp <2 x i32> undef to <2 x double>
452 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r188 = uitofp <2 x i64> undef to <2 x double>
453 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 12 for instruction: %r189 = sitofp <2 x i64> undef to <2 x double>
454 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r190 = uitofp <4 x i1> undef to <4 x float>
455 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r191 = sitofp <4 x i1> undef to <4 x float>
456 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r192 = uitofp <4 x i8> undef to <4 x float>
457 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r193 = sitofp <4 x i8> undef to <4 x float>
458 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r194 = uitofp <4 x i16> undef to <4 x float>
459 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r195 = sitofp <4 x i16> undef to <4 x float>
460 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r196 = uitofp <4 x i32> undef to <4 x float>
461 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r197 = sitofp <4 x i32> undef to <4 x float>
462 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r198 = uitofp <4 x i64> undef to <4 x float>
463 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r199 = sitofp <4 x i64> undef to <4 x float>
464 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r200 = uitofp <4 x i1> undef to <4 x double>
465 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r201 = sitofp <4 x i1> undef to <4 x double>
466 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r202 = uitofp <4 x i8> undef to <4 x double>
467 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r203 = sitofp <4 x i8> undef to <4 x double>
468 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r204 = uitofp <4 x i16> undef to <4 x double>
469 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r205 = sitofp <4 x i16> undef to <4 x double>
470 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r206 = uitofp <4 x i32> undef to <4 x double>
471 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r207 = sitofp <4 x i32> undef to <4 x double>
472 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r208 = uitofp <4 x i64> undef to <4 x double>
473 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 25 for instruction: %r209 = sitofp <4 x i64> undef to <4 x double>
474 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r210 = uitofp <8 x i1> undef to <8 x float>
475 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r211 = sitofp <8 x i1> undef to <8 x float>
476 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r212 = uitofp <8 x i8> undef to <8 x float>
477 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r213 = sitofp <8 x i8> undef to <8 x float>
478 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r214 = uitofp <8 x i16> undef to <8 x float>
479 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %r215 = sitofp <8 x i16> undef to <8 x float>
480 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r216 = uitofp <8 x i32> undef to <8 x float>
481 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r217 = sitofp <8 x i32> undef to <8 x float>
482 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r218 = uitofp <8 x i64> undef to <8 x float>
483 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r219 = sitofp <8 x i64> undef to <8 x float>
484 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r220 = uitofp <8 x i1> undef to <8 x double>
485 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r221 = sitofp <8 x i1> undef to <8 x double>
486 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r222 = uitofp <8 x i8> undef to <8 x double>
487 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r223 = sitofp <8 x i8> undef to <8 x double>
488 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r224 = uitofp <8 x i16> undef to <8 x double>
489 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r225 = sitofp <8 x i16> undef to <8 x double>
490 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r226 = uitofp <8 x i16> undef to <8 x double>
491 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r227 = sitofp <8 x i16> undef to <8 x double>
492 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r228 = uitofp <8 x i64> undef to <8 x double>
493 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 51 for instruction: %r229 = sitofp <8 x i64> undef to <8 x double>
494 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r230 = uitofp <16 x i1> undef to <16 x float>
495 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r231 = sitofp <16 x i1> undef to <16 x float>
496 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r232 = uitofp <16 x i8> undef to <16 x float>
497 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r233 = sitofp <16 x i8> undef to <16 x float>
498 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r234 = uitofp <16 x i16> undef to <16 x float>
499 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 7 for instruction: %r235 = sitofp <16 x i16> undef to <16 x float>
500 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r236 = uitofp <16 x i32> undef to <16 x float>
501 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r237 = sitofp <16 x i32> undef to <16 x float>
502 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r238 = uitofp <16 x i64> undef to <16 x float>
503 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 15 for instruction: %r239 = sitofp <16 x i64> undef to <16 x float>
504 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r240 = uitofp <16 x i1> undef to <16 x double>
505 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r241 = sitofp <16 x i1> undef to <16 x double>
506 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r242 = uitofp <16 x i8> undef to <16 x double>
507 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r243 = sitofp <16 x i8> undef to <16 x double>
508 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r244 = uitofp <16 x i16> undef to <16 x double>
509 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r245 = sitofp <16 x i16> undef to <16 x double>
510 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r246 = uitofp <16 x i16> undef to <16 x double>
511 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r247 = sitofp <16 x i16> undef to <16 x double>
512 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r248 = uitofp <16 x i64> undef to <16 x double>
513 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 103 for instruction: %r249 = sitofp <16 x i64> undef to <16 x double>
514 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i32 undef
517 %r0 = sext i1 undef to i8
518 %r1 = zext i1 undef to i8
519 %r2 = sext i1 undef to i16
520 %r3 = zext i1 undef to i16
521 %r4 = sext i1 undef to i32
522 %r5 = zext i1 undef to i32
523 %r6 = sext i1 undef to i64
524 %r7 = zext i1 undef to i64
525 %r8 = trunc i8 undef to i1
526 %r9 = sext i8 undef to i16
527 %r10 = zext i8 undef to i16
528 %r11 = sext i8 undef to i32
529 %r12 = zext i8 undef to i32
530 %r13 = sext i8 undef to i64
531 %r14 = zext i8 undef to i64
532 %r15 = trunc i16 undef to i1
533 %r16 = trunc i16 undef to i8
534 %r17 = sext i16 undef to i32
535 %r18 = zext i16 undef to i32
536 %r19 = sext i16 undef to i64
537 %r20 = zext i16 undef to i64
538 %r21 = trunc i32 undef to i1
539 %r22 = trunc i32 undef to i8
540 %r23 = trunc i32 undef to i16
541 %r24 = sext i32 undef to i64
542 %r25 = zext i32 undef to i64
543 %r26 = trunc i64 undef to i1
544 %r27 = trunc i64 undef to i8
545 %r28 = trunc i64 undef to i16
546 %r29 = trunc i64 undef to i32
548 ; -- floating point conversions --
549 ; Moves between scalar and NEON registers.
550 %r30 = fptoui float undef to i1
551 %r31 = fptosi float undef to i1
552 %r32 = fptoui float undef to i8
553 %r33 = fptosi float undef to i8
554 %r34 = fptoui float undef to i16
555 %r35 = fptosi float undef to i16
556 %r36 = fptoui float undef to i32
557 %r37 = fptosi float undef to i32
558 %r38 = fptoui float undef to i64
559 %r39 = fptosi float undef to i64
560 %r40 = fptoui double undef to i1
561 %r41 = fptosi double undef to i1
562 %r42 = fptoui double undef to i8
563 %r43 = fptosi double undef to i8
564 %r44 = fptoui double undef to i16
565 %r45 = fptosi double undef to i16
566 %r46 = fptoui double undef to i32
567 %r47 = fptosi double undef to i32
569 %r48 = fptoui double undef to i64
570 %r49 = fptosi double undef to i64
572 %r50 = sitofp i1 undef to float
573 %r51 = uitofp i1 undef to float
574 %r52 = sitofp i1 undef to double
575 %r53 = uitofp i1 undef to double
576 %r54 = sitofp i8 undef to float
577 %r55 = uitofp i8 undef to float
578 %r56 = sitofp i8 undef to double
579 %r57 = uitofp i8 undef to double
580 %r58 = sitofp i16 undef to float
581 %r59 = uitofp i16 undef to float
582 %r60 = sitofp i16 undef to double
583 %r61 = uitofp i16 undef to double
584 %r62 = sitofp i32 undef to float
585 %r63 = uitofp i32 undef to float
586 %r64 = sitofp i32 undef to double
587 %r65 = uitofp i32 undef to double
589 %r66 = sitofp i64 undef to float
590 %r67 = uitofp i64 undef to float
591 %r68 = sitofp i64 undef to double
592 %r69 = uitofp i64 undef to double
594 %r70 = sext <8 x i8> undef to <8 x i32>
595 %r71 = sext <16 x i8> undef to <16 x i32>
596 %r72 = zext <8 x i8> undef to <8 x i32>
597 %r73 = zext <16 x i8> undef to <16 x i32>
599 %rext_0 = sext <8 x i8> undef to <8 x i64>
600 %rext_1 = zext <8 x i8> undef to <8 x i64>
601 %rext_2 = sext <8 x i16> undef to <8 x i64>
602 %rext_3 = zext <8 x i16> undef to <8 x i64>
603 %rext_4 = sext <4 x i16> undef to <4 x i64>
604 %rext_5 = zext <4 x i16> undef to <4 x i64>
606 ; Vector cast cost of instructions lowering the cast to the stack.
607 %r74 = trunc <8 x i32> undef to <8 x i8>
608 %r75 = trunc <16 x i32> undef to <16 x i8>
610 ; Floating point truncation costs.
611 %r80 = fptrunc double undef to float
612 %r81 = fptrunc <2 x double> undef to <2 x float>
613 %r82 = fptrunc <4 x double> undef to <4 x float>
614 %r83 = fptrunc <8 x double> undef to <8 x float>
615 %r84 = fptrunc <16 x double> undef to <16 x float>
617 ; Floating point extension costs.
618 %r85 = fpext float undef to double
619 %r86 = fpext <2 x float> undef to <2 x double>
620 %r87 = fpext <4 x float> undef to <4 x double>
621 %r88 = fpext <8 x float> undef to <8 x double>
622 %r89 = fpext <16 x float> undef to <16 x double>
624 ;; Floating point to integer vector casts.
625 %r90 = fptoui <2 x float> undef to <2 x i1>
626 %r91 = fptosi <2 x float> undef to <2 x i1>
627 %r92 = fptoui <2 x float> undef to <2 x i8>
628 %r93 = fptosi <2 x float> undef to <2 x i8>
629 %r94 = fptoui <2 x float> undef to <2 x i16>
630 %r95 = fptosi <2 x float> undef to <2 x i16>
631 %r96 = fptoui <2 x float> undef to <2 x i32>
632 %r97 = fptosi <2 x float> undef to <2 x i32>
633 %r98 = fptoui <2 x float> undef to <2 x i64>
634 %r99 = fptosi <2 x float> undef to <2 x i64>
636 %r100 = fptoui <2 x double> undef to <2 x i1>
637 %r101 = fptosi <2 x double> undef to <2 x i1>
638 %r102 = fptoui <2 x double> undef to <2 x i8>
639 %r103 = fptosi <2 x double> undef to <2 x i8>
640 %r104 = fptoui <2 x double> undef to <2 x i16>
641 %r105 = fptosi <2 x double> undef to <2 x i16>
642 %r106 = fptoui <2 x double> undef to <2 x i32>
643 %r107 = fptosi <2 x double> undef to <2 x i32>
644 %r108 = fptoui <2 x double> undef to <2 x i64>
645 %r109 = fptosi <2 x double> undef to <2 x i64>
647 %r110 = fptoui <4 x float> undef to <4 x i1>
648 %r111 = fptosi <4 x float> undef to <4 x i1>
649 %r112 = fptoui <4 x float> undef to <4 x i8>
650 %r113 = fptosi <4 x float> undef to <4 x i8>
652 %r114 = fptoui <4 x float> undef to <4 x i16>
653 %r115 = fptosi <4 x float> undef to <4 x i16>
654 %r116 = fptoui <4 x float> undef to <4 x i32>
655 %r117 = fptosi <4 x float> undef to <4 x i32>
656 %r118 = fptoui <4 x float> undef to <4 x i64>
657 %r119 = fptosi <4 x float> undef to <4 x i64>
659 %r120 = fptoui <4 x double> undef to <4 x i1>
660 %r121 = fptosi <4 x double> undef to <4 x i1>
661 %r122 = fptoui <4 x double> undef to <4 x i8>
662 %r123 = fptosi <4 x double> undef to <4 x i8>
663 %r124 = fptoui <4 x double> undef to <4 x i16>
664 %r125 = fptosi <4 x double> undef to <4 x i16>
665 %r126 = fptoui <4 x double> undef to <4 x i32>
666 %r127 = fptosi <4 x double> undef to <4 x i32>
667 %r128 = fptoui <4 x double> undef to <4 x i64>
668 %r129 = fptosi <4 x double> undef to <4 x i64>
670 %r130 = fptoui <8 x float> undef to <8 x i1>
671 %r131 = fptosi <8 x float> undef to <8 x i1>
672 %r132 = fptoui <8 x float> undef to <8 x i8>
673 %r133 = fptosi <8 x float> undef to <8 x i8>
674 %r134 = fptoui <8 x float> undef to <8 x i16>
675 %r135 = fptosi <8 x float> undef to <8 x i16>
676 %r136 = fptoui <8 x float> undef to <8 x i32>
677 %r137 = fptosi <8 x float> undef to <8 x i32>
678 %r138 = fptoui <8 x float> undef to <8 x i64>
679 %r139 = fptosi <8 x float> undef to <8 x i64>
681 %r140 = fptoui <8 x double> undef to <8 x i1>
682 %r141 = fptosi <8 x double> undef to <8 x i1>
683 %r142 = fptoui <8 x double> undef to <8 x i8>
684 %r143 = fptosi <8 x double> undef to <8 x i8>
685 %r144 = fptoui <8 x double> undef to <8 x i16>
686 %r145 = fptosi <8 x double> undef to <8 x i16>
687 %r146 = fptoui <8 x double> undef to <8 x i32>
688 %r147 = fptosi <8 x double> undef to <8 x i32>
689 %r148 = fptoui <8 x double> undef to <8 x i64>
690 %r149 = fptosi <8 x double> undef to <8 x i64>
692 %r150 = fptoui <16 x float> undef to <16 x i1>
693 %r151 = fptosi <16 x float> undef to <16 x i1>
694 %r152 = fptoui <16 x float> undef to <16 x i8>
695 %r153 = fptosi <16 x float> undef to <16 x i8>
696 %r154 = fptoui <16 x float> undef to <16 x i16>
697 %r155 = fptosi <16 x float> undef to <16 x i16>
698 %r156 = fptoui <16 x float> undef to <16 x i32>
699 %r157 = fptosi <16 x float> undef to <16 x i32>
700 %r158 = fptoui <16 x float> undef to <16 x i64>
701 %r159 = fptosi <16 x float> undef to <16 x i64>
703 %r160 = fptoui <16 x double> undef to <16 x i1>
704 %r161 = fptosi <16 x double> undef to <16 x i1>
705 %r162 = fptoui <16 x double> undef to <16 x i8>
706 %r163 = fptosi <16 x double> undef to <16 x i8>
707 %r164 = fptoui <16 x double> undef to <16 x i16>
708 %r165 = fptosi <16 x double> undef to <16 x i16>
709 %r166 = fptoui <16 x double> undef to <16 x i32>
710 %r167 = fptosi <16 x double> undef to <16 x i32>
711 %r168 = fptoui <16 x double> undef to <16 x i64>
712 %r169 = fptosi <16 x double> undef to <16 x i64>
714 %r170 = uitofp <2 x i1> undef to <2 x float>
715 %r171 = sitofp <2 x i1> undef to <2 x float>
716 %r172 = uitofp <2 x i8> undef to <2 x float>
717 %r173 = sitofp <2 x i8> undef to <2 x float>
718 %r174 = uitofp <2 x i16> undef to <2 x float>
719 %r175 = sitofp <2 x i16> undef to <2 x float>
720 %r176 = uitofp <2 x i32> undef to <2 x float>
721 %r177 = sitofp <2 x i32> undef to <2 x float>
722 %r178 = uitofp <2 x i64> undef to <2 x float>
723 %r179 = sitofp <2 x i64> undef to <2 x float>
725 %r180 = uitofp <2 x i1> undef to <2 x double>
726 %r181 = sitofp <2 x i1> undef to <2 x double>
727 %r182 = uitofp <2 x i8> undef to <2 x double>
728 %r183 = sitofp <2 x i8> undef to <2 x double>
729 %r184 = uitofp <2 x i16> undef to <2 x double>
730 %r185 = sitofp <2 x i16> undef to <2 x double>
731 %r186 = uitofp <2 x i32> undef to <2 x double>
732 %r187 = sitofp <2 x i32> undef to <2 x double>
733 %r188 = uitofp <2 x i64> undef to <2 x double>
734 %r189 = sitofp <2 x i64> undef to <2 x double>
736 %r190 = uitofp <4 x i1> undef to <4 x float>
737 %r191 = sitofp <4 x i1> undef to <4 x float>
738 %r192 = uitofp <4 x i8> undef to <4 x float>
739 %r193 = sitofp <4 x i8> undef to <4 x float>
740 %r194 = uitofp <4 x i16> undef to <4 x float>
741 %r195 = sitofp <4 x i16> undef to <4 x float>
742 %r196 = uitofp <4 x i32> undef to <4 x float>
743 %r197 = sitofp <4 x i32> undef to <4 x float>
744 %r198 = uitofp <4 x i64> undef to <4 x float>
745 %r199 = sitofp <4 x i64> undef to <4 x float>
747 %r200 = uitofp <4 x i1> undef to <4 x double>
748 %r201 = sitofp <4 x i1> undef to <4 x double>
749 %r202 = uitofp <4 x i8> undef to <4 x double>
750 %r203 = sitofp <4 x i8> undef to <4 x double>
751 %r204 = uitofp <4 x i16> undef to <4 x double>
752 %r205 = sitofp <4 x i16> undef to <4 x double>
753 %r206 = uitofp <4 x i32> undef to <4 x double>
754 %r207 = sitofp <4 x i32> undef to <4 x double>
755 %r208 = uitofp <4 x i64> undef to <4 x double>
756 %r209 = sitofp <4 x i64> undef to <4 x double>
758 %r210 = uitofp <8 x i1> undef to <8 x float>
759 %r211 = sitofp <8 x i1> undef to <8 x float>
760 %r212 = uitofp <8 x i8> undef to <8 x float>
761 %r213 = sitofp <8 x i8> undef to <8 x float>
762 %r214 = uitofp <8 x i16> undef to <8 x float>
763 %r215 = sitofp <8 x i16> undef to <8 x float>
764 %r216 = uitofp <8 x i32> undef to <8 x float>
765 %r217 = sitofp <8 x i32> undef to <8 x float>
766 %r218 = uitofp <8 x i64> undef to <8 x float>
767 %r219 = sitofp <8 x i64> undef to <8 x float>
769 %r220 = uitofp <8 x i1> undef to <8 x double>
770 %r221 = sitofp <8 x i1> undef to <8 x double>
771 %r222 = uitofp <8 x i8> undef to <8 x double>
772 %r223 = sitofp <8 x i8> undef to <8 x double>
773 %r224 = uitofp <8 x i16> undef to <8 x double>
774 %r225 = sitofp <8 x i16> undef to <8 x double>
775 %r226 = uitofp <8 x i16> undef to <8 x double>
776 %r227 = sitofp <8 x i16> undef to <8 x double>
777 %r228 = uitofp <8 x i64> undef to <8 x double>
778 %r229 = sitofp <8 x i64> undef to <8 x double>
780 %r230 = uitofp <16 x i1> undef to <16 x float>
781 %r231 = sitofp <16 x i1> undef to <16 x float>
782 %r232 = uitofp <16 x i8> undef to <16 x float>
783 %r233 = sitofp <16 x i8> undef to <16 x float>
784 %r234 = uitofp <16 x i16> undef to <16 x float>
785 %r235 = sitofp <16 x i16> undef to <16 x float>
786 %r236 = uitofp <16 x i32> undef to <16 x float>
787 %r237 = sitofp <16 x i32> undef to <16 x float>
788 %r238 = uitofp <16 x i64> undef to <16 x float>
789 %r239 = sitofp <16 x i64> undef to <16 x float>
791 %r240 = uitofp <16 x i1> undef to <16 x double>
792 %r241 = sitofp <16 x i1> undef to <16 x double>
793 %r242 = uitofp <16 x i8> undef to <16 x double>
794 %r243 = sitofp <16 x i8> undef to <16 x double>
795 %r244 = uitofp <16 x i16> undef to <16 x double>
796 %r245 = sitofp <16 x i16> undef to <16 x double>
797 %r246 = uitofp <16 x i16> undef to <16 x double>
798 %r247 = sitofp <16 x i16> undef to <16 x double>
799 %r248 = uitofp <16 x i64> undef to <16 x double>
800 %r249 = sitofp <16 x i64> undef to <16 x double>
806 define i32 @load_extends() {
807 ; CHECK-NEON-LABEL: 'load_extends'
808 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi8 = load i8, i8* undef
809 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi16 = load i16, i16* undef
810 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi32 = load i32, i32* undef
811 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i8 = load <2 x i8>, <2 x i8>* undef
812 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv4i8 = load <4 x i8>, <4 x i8>* undef
813 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv8i8 = load <8 x i8>, <8 x i8>* undef
814 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i16 = load <2 x i16>, <2 x i16>* undef
815 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv4i16 = load <4 x i16>, <4 x i16>* undef
816 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i32 = load <2 x i32>, <2 x i32>* undef
817 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r0 = sext i8 %loadi8 to i16
818 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r1 = zext i8 %loadi8 to i16
819 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r2 = sext i8 %loadi8 to i32
820 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r3 = zext i8 %loadi8 to i32
821 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r4 = sext i8 %loadi8 to i64
822 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r5 = zext i8 %loadi8 to i64
823 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r6 = sext i16 %loadi16 to i32
824 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r7 = zext i16 %loadi16 to i32
825 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r8 = sext i16 %loadi16 to i64
826 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r9 = zext i16 %loadi16 to i64
827 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r10 = sext i32 %loadi32 to i64
828 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r11 = zext i32 %loadi32 to i64
829 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v0 = sext <8 x i8> %loadv8i8 to <8 x i16>
830 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1 = zext <8 x i8> %loadv8i8 to <8 x i16>
831 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2 = sext <4 x i8> %loadv4i8 to <4 x i32>
832 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3 = zext <4 x i8> %loadv4i8 to <4 x i32>
833 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v4 = sext <2 x i8> %loadv2i8 to <2 x i64>
834 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v5 = zext <2 x i8> %loadv2i8 to <2 x i64>
835 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v6 = sext <4 x i16> %loadv4i16 to <4 x i32>
836 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %v7 = zext <4 x i16> %loadv4i16 to <4 x i32>
837 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v8 = sext <2 x i16> %loadv2i16 to <2 x i64>
838 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v9 = zext <2 x i16> %loadv2i16 to <2 x i64>
839 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v10 = sext <2 x i32> %loadv2i32 to <2 x i64>
840 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v11 = zext <2 x i32> %loadv2i32 to <2 x i64>
841 ; CHECK-NEON-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i32 undef
843 ; CHECK-MVE-LABEL: 'load_extends'
844 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi8 = load i8, i8* undef
845 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi16 = load i16, i16* undef
846 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadi32 = load i32, i32* undef
847 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i8 = load <2 x i8>, <2 x i8>* undef
848 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv4i8 = load <4 x i8>, <4 x i8>* undef
849 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv8i8 = load <8 x i8>, <8 x i8>* undef
850 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i16 = load <2 x i16>, <2 x i16>* undef
851 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv4i16 = load <4 x i16>, <4 x i16>* undef
852 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %loadv2i32 = load <2 x i32>, <2 x i32>* undef
853 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r0 = sext i8 %loadi8 to i16
854 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r1 = zext i8 %loadi8 to i16
855 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r2 = sext i8 %loadi8 to i32
856 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r3 = zext i8 %loadi8 to i32
857 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r4 = sext i8 %loadi8 to i64
858 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r5 = zext i8 %loadi8 to i64
859 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r6 = sext i16 %loadi16 to i32
860 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r7 = zext i16 %loadi16 to i32
861 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %r8 = sext i16 %loadi16 to i64
862 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r9 = zext i16 %loadi16 to i64
863 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r10 = sext i32 %loadi32 to i64
864 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %r11 = zext i32 %loadi32 to i64
865 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v0 = sext <8 x i8> %loadv8i8 to <8 x i16>
866 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v1 = zext <8 x i8> %loadv8i8 to <8 x i16>
867 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v2 = sext <4 x i8> %loadv4i8 to <4 x i32>
868 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v3 = zext <4 x i8> %loadv4i8 to <4 x i32>
869 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v4 = sext <2 x i8> %loadv2i8 to <2 x i64>
870 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v5 = zext <2 x i8> %loadv2i8 to <2 x i64>
871 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v6 = sext <4 x i16> %loadv4i16 to <4 x i32>
872 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v7 = zext <4 x i16> %loadv4i16 to <4 x i32>
873 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v8 = sext <2 x i16> %loadv2i16 to <2 x i64>
874 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v9 = zext <2 x i16> %loadv2i16 to <2 x i64>
875 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %v10 = sext <2 x i32> %loadv2i32 to <2 x i64>
876 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %v11 = zext <2 x i32> %loadv2i32 to <2 x i64>
877 ; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret i32 undef
880 %loadi8 = load i8, i8* undef
881 %loadi16 = load i16, i16* undef
882 %loadi32 = load i32, i32* undef
883 %loadv2i8 = load <2 x i8>, <2 x i8>* undef
884 %loadv4i8 = load <4 x i8>, <4 x i8>* undef
885 %loadv8i8 = load <8 x i8>, <8 x i8>* undef
886 %loadv2i16 = load <2 x i16>, <2 x i16>* undef
887 %loadv4i16 = load <4 x i16>, <4 x i16>* undef
888 %loadv2i32 = load <2 x i32>, <2 x i32>* undef
890 %r0 = sext i8 %loadi8 to i16
891 %r1 = zext i8 %loadi8 to i16
892 %r2 = sext i8 %loadi8 to i32
893 %r3 = zext i8 %loadi8 to i32
894 %r4 = sext i8 %loadi8 to i64
895 %r5 = zext i8 %loadi8 to i64
896 %r6 = sext i16 %loadi16 to i32
897 %r7 = zext i16 %loadi16 to i32
898 %r8 = sext i16 %loadi16 to i64
899 %r9 = zext i16 %loadi16 to i64
900 %r10 = sext i32 %loadi32 to i64
901 %r11 = zext i32 %loadi32 to i64
903 %v0 = sext <8 x i8> %loadv8i8 to <8 x i16>
904 %v1 = zext <8 x i8> %loadv8i8 to <8 x i16>
905 %v2 = sext <4 x i8> %loadv4i8 to <4 x i32>
906 %v3 = zext <4 x i8> %loadv4i8 to <4 x i32>
907 %v4 = sext <2 x i8> %loadv2i8 to <2 x i64>
908 %v5 = zext <2 x i8> %loadv2i8 to <2 x i64>
909 %v6 = sext <4 x i16> %loadv4i16 to <4 x i32>
910 %v7 = zext <4 x i16> %loadv4i16 to <4 x i32>
911 %v8 = sext <2 x i16> %loadv2i16 to <2 x i64>
912 %v9 = zext <2 x i16> %loadv2i16 to <2 x i64>
913 %v10 = sext <2 x i32> %loadv2i32 to <2 x i64>
914 %v11 = zext <2 x i32> %loadv2i32 to <2 x i64>