xref: /aosp_15_r20/external/llvm/test/Analysis/CostModel/ARM/cast.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s  -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=cortex-a8 | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
3*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-ios6.0.0"
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i32 @casts() {
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker    ; -- scalars --
8*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r0 = sext i1 undef to i8
9*9880d681SAndroid Build Coastguard Worker  %r0 = sext i1 undef to i8
10*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r1 = zext i1 undef to i8
11*9880d681SAndroid Build Coastguard Worker  %r1 = zext i1 undef to i8
12*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r2 = sext i1 undef to i16
13*9880d681SAndroid Build Coastguard Worker  %r2 = sext i1 undef to i16
14*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r3 = zext i1 undef to i16
15*9880d681SAndroid Build Coastguard Worker  %r3 = zext i1 undef to i16
16*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r4 = sext i1 undef to i32
17*9880d681SAndroid Build Coastguard Worker  %r4 = sext i1 undef to i32
18*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r5 = zext i1 undef to i32
19*9880d681SAndroid Build Coastguard Worker  %r5 = zext i1 undef to i32
20*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r6 = sext i1 undef to i64
21*9880d681SAndroid Build Coastguard Worker  %r6 = sext i1 undef to i64
22*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r7 = zext i1 undef to i64
23*9880d681SAndroid Build Coastguard Worker  %r7 = zext i1 undef to i64
24*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r8 = trunc i8 undef to i1
25*9880d681SAndroid Build Coastguard Worker  %r8 = trunc i8 undef to i1
26*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r9 = sext i8 undef to i16
27*9880d681SAndroid Build Coastguard Worker  %r9 = sext i8 undef to i16
28*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r10 = zext i8 undef to i16
29*9880d681SAndroid Build Coastguard Worker  %r10 = zext i8 undef to i16
30*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r11 = sext i8 undef to i32
31*9880d681SAndroid Build Coastguard Worker  %r11 = sext i8 undef to i32
32*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r12 = zext i8 undef to i32
33*9880d681SAndroid Build Coastguard Worker  %r12 = zext i8 undef to i32
34*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r13 = sext i8 undef to i64
35*9880d681SAndroid Build Coastguard Worker  %r13 = sext i8 undef to i64
36*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r14 = zext i8 undef to i64
37*9880d681SAndroid Build Coastguard Worker  %r14 = zext i8 undef to i64
38*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r15 = trunc i16 undef to i1
39*9880d681SAndroid Build Coastguard Worker  %r15 = trunc i16 undef to i1
40*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r16 = trunc i16 undef to i8
41*9880d681SAndroid Build Coastguard Worker  %r16 = trunc i16 undef to i8
42*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r17 = sext i16 undef to i32
43*9880d681SAndroid Build Coastguard Worker  %r17 = sext i16 undef to i32
44*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r18 = zext i16 undef to i32
45*9880d681SAndroid Build Coastguard Worker  %r18 = zext i16 undef to i32
46*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 2 for instruction:   %r19 = sext i16 undef to i64
47*9880d681SAndroid Build Coastguard Worker  %r19 = sext i16 undef to i64
48*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r20 = zext i16 undef to i64
49*9880d681SAndroid Build Coastguard Worker  %r20 = zext i16 undef to i64
50*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r21 = trunc i32 undef to i1
51*9880d681SAndroid Build Coastguard Worker  %r21 = trunc i32 undef to i1
52*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r22 = trunc i32 undef to i8
53*9880d681SAndroid Build Coastguard Worker  %r22 = trunc i32 undef to i8
54*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r23 = trunc i32 undef to i16
55*9880d681SAndroid Build Coastguard Worker  %r23 = trunc i32 undef to i16
56*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r24 = sext i32 undef to i64
57*9880d681SAndroid Build Coastguard Worker  %r24 = sext i32 undef to i64
58*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 1 for instruction:   %r25 = zext i32 undef to i64
59*9880d681SAndroid Build Coastguard Worker  %r25 = zext i32 undef to i64
60*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r26 = trunc i64 undef to i1
61*9880d681SAndroid Build Coastguard Worker  %r26 = trunc i64 undef to i1
62*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r27 = trunc i64 undef to i8
63*9880d681SAndroid Build Coastguard Worker  %r27 = trunc i64 undef to i8
64*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r28 = trunc i64 undef to i16
65*9880d681SAndroid Build Coastguard Worker  %r28 = trunc i64 undef to i16
66*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 0 for instruction:   %r29 = trunc i64 undef to i32
67*9880d681SAndroid Build Coastguard Worker  %r29 = trunc i64 undef to i32
68*9880d681SAndroid Build Coastguard Worker
69*9880d681SAndroid Build Coastguard Worker    ; -- floating point conversions --
70*9880d681SAndroid Build Coastguard Worker  ; Moves between scalar and NEON registers.
71*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 2 for instruction:   %r30 = fptoui float undef to i1
72*9880d681SAndroid Build Coastguard Worker  %r30 = fptoui float undef to i1
73*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 2 for instruction:   %r31 = fptosi float undef to i1
74*9880d681SAndroid Build Coastguard Worker  %r31 = fptosi float undef to i1
75*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 2 for instruction:   %r32 = fptoui float undef to i8
76*9880d681SAndroid Build Coastguard Worker  %r32 = fptoui float undef to i8
77*9880d681SAndroid Build Coastguard Worker  ; CHECK: Found an estimated cost of 2 for instruction:   %r33 = fptosi float undef to i8
78*9880d681SAndroid Build Coastguard Worker  %r33 = fptosi float undef to i8
79*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r34 = fptoui float undef to i16
80*9880d681SAndroid Build Coastguard Worker  %r34 = fptoui float undef to i16
81*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r35 = fptosi float undef to i16
82*9880d681SAndroid Build Coastguard Worker  %r35 = fptosi float undef to i16
83*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r36 = fptoui float undef to i32
84*9880d681SAndroid Build Coastguard Worker  %r36 = fptoui float undef to i32
85*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r37 = fptosi float undef to i32
86*9880d681SAndroid Build Coastguard Worker  %r37 = fptosi float undef to i32
87*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r38 = fptoui float undef to i64
88*9880d681SAndroid Build Coastguard Worker  %r38 = fptoui float undef to i64
89*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r39 = fptosi float undef to i64
90*9880d681SAndroid Build Coastguard Worker  %r39 = fptosi float undef to i64
91*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r40 = fptoui double undef to i1
92*9880d681SAndroid Build Coastguard Worker  %r40 = fptoui double undef to i1
93*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r41 = fptosi double undef to i1
94*9880d681SAndroid Build Coastguard Worker  %r41 = fptosi double undef to i1
95*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r42 = fptoui double undef to i8
96*9880d681SAndroid Build Coastguard Worker  %r42 = fptoui double undef to i8
97*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r43 = fptosi double undef to i8
98*9880d681SAndroid Build Coastguard Worker  %r43 = fptosi double undef to i8
99*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r44 = fptoui double undef to i16
100*9880d681SAndroid Build Coastguard Worker  %r44 = fptoui double undef to i16
101*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r45 = fptosi double undef to i16
102*9880d681SAndroid Build Coastguard Worker  %r45 = fptosi double undef to i16
103*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r46 = fptoui double undef to i32
104*9880d681SAndroid Build Coastguard Worker  %r46 = fptoui double undef to i32
105*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r47 = fptosi double undef to i32
106*9880d681SAndroid Build Coastguard Worker  %r47 = fptosi double undef to i32
107*9880d681SAndroid Build Coastguard Worker  ; Function call
108*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r48 = fptoui double undef to i64
109*9880d681SAndroid Build Coastguard Worker  %r48 = fptoui double undef to i64
110*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r49 = fptosi double undef to i64
111*9880d681SAndroid Build Coastguard Worker  %r49 = fptosi double undef to i64
112*9880d681SAndroid Build Coastguard Worker
113*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r50 = sitofp i1 undef to float
114*9880d681SAndroid Build Coastguard Worker  %r50 = sitofp i1 undef to float
115*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r51 = uitofp i1 undef to float
116*9880d681SAndroid Build Coastguard Worker  %r51 = uitofp i1 undef to float
117*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r52 = sitofp i1 undef to double
118*9880d681SAndroid Build Coastguard Worker  %r52 = sitofp i1 undef to double
119*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r53 = uitofp i1 undef to double
120*9880d681SAndroid Build Coastguard Worker  %r53 = uitofp i1 undef to double
121*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r54 = sitofp i8 undef to float
122*9880d681SAndroid Build Coastguard Worker  %r54 = sitofp i8 undef to float
123*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r55 = uitofp i8 undef to float
124*9880d681SAndroid Build Coastguard Worker  %r55 = uitofp i8 undef to float
125*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r56 = sitofp i8 undef to double
126*9880d681SAndroid Build Coastguard Worker  %r56 = sitofp i8 undef to double
127*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r57 = uitofp i8 undef to double
128*9880d681SAndroid Build Coastguard Worker  %r57 = uitofp i8 undef to double
129*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r58 = sitofp i16 undef to float
130*9880d681SAndroid Build Coastguard Worker  %r58 = sitofp i16 undef to float
131*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r59 = uitofp i16 undef to float
132*9880d681SAndroid Build Coastguard Worker  %r59 = uitofp i16 undef to float
133*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r60 = sitofp i16 undef to double
134*9880d681SAndroid Build Coastguard Worker  %r60 = sitofp i16 undef to double
135*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r61 = uitofp i16 undef to double
136*9880d681SAndroid Build Coastguard Worker  %r61 = uitofp i16 undef to double
137*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r62 = sitofp i32 undef to float
138*9880d681SAndroid Build Coastguard Worker  %r62 = sitofp i32 undef to float
139*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r63 = uitofp i32 undef to float
140*9880d681SAndroid Build Coastguard Worker  %r63 = uitofp i32 undef to float
141*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r64 = sitofp i32 undef to double
142*9880d681SAndroid Build Coastguard Worker  %r64 = sitofp i32 undef to double
143*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r65 = uitofp i32 undef to double
144*9880d681SAndroid Build Coastguard Worker  %r65 = uitofp i32 undef to double
145*9880d681SAndroid Build Coastguard Worker  ; Function call
146*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r66 = sitofp i64 undef to float
147*9880d681SAndroid Build Coastguard Worker  %r66 = sitofp i64 undef to float
148*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r67 = uitofp i64 undef to float
149*9880d681SAndroid Build Coastguard Worker  %r67 = uitofp i64 undef to float
150*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r68 = sitofp i64 undef to double
151*9880d681SAndroid Build Coastguard Worker  %r68 = sitofp i64 undef to double
152*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 10 for instruction:   %r69 = uitofp i64 undef to double
153*9880d681SAndroid Build Coastguard Worker  %r69 = uitofp i64 undef to double
154*9880d681SAndroid Build Coastguard Worker
155*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r70 = sext <8 x i8> undef to <8 x i32>
156*9880d681SAndroid Build Coastguard Worker  %r70 = sext <8 x i8> undef to <8 x i32>
157*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 6 for instruction:   %r71 = sext <16 x i8> undef to <16 x i32>
158*9880d681SAndroid Build Coastguard Worker  %r71 = sext <16 x i8> undef to <16 x i32>
159*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r72 = zext <8 x i8> undef to <8 x i32>
160*9880d681SAndroid Build Coastguard Worker  %r72 = zext <8 x i8> undef to <8 x i32>
161*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 6 for instruction:   %r73 = zext <16 x i8> undef to <16 x i32>
162*9880d681SAndroid Build Coastguard Worker  %r73 = zext <16 x i8> undef to <16 x i32>
163*9880d681SAndroid Build Coastguard Worker
164*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %rext_0 = sext <8 x i8> undef to <8 x i64>
165*9880d681SAndroid Build Coastguard Worker  %rext_0 = sext <8 x i8> undef to <8 x i64>
166*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %rext_1 = zext <8 x i8> undef to <8 x i64>
167*9880d681SAndroid Build Coastguard Worker  %rext_1 = zext <8 x i8> undef to <8 x i64>
168*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 6 for instruction:   %rext_2 = sext <8 x i16> undef to <8 x i64>
169*9880d681SAndroid Build Coastguard Worker  %rext_2 = sext <8 x i16> undef to <8 x i64>
170*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 6 for instruction:   %rext_3 = zext <8 x i16> undef to <8 x i64>
171*9880d681SAndroid Build Coastguard Worker  %rext_3 = zext <8 x i16> undef to <8 x i64>
172*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %rext_4 = sext <4 x i16> undef to <4 x i64>
173*9880d681SAndroid Build Coastguard Worker  %rext_4 = sext <4 x i16> undef to <4 x i64>
174*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %rext_5 = zext <4 x i16> undef to <4 x i64>
175*9880d681SAndroid Build Coastguard Worker  %rext_5 = zext <4 x i16> undef to <4 x i64>
176*9880d681SAndroid Build Coastguard Worker
177*9880d681SAndroid Build Coastguard Worker  ; Vector cast cost of instructions lowering the cast to the stack.
178*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r74 = trunc <8 x i32> undef to <8 x i8>
179*9880d681SAndroid Build Coastguard Worker  %r74 = trunc <8 x i32> undef to <8 x i8>
180*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 6 for instruction:   %r75 = trunc <16 x i32> undef to <16 x i8>
181*9880d681SAndroid Build Coastguard Worker  %r75 = trunc <16 x i32> undef to <16 x i8>
182*9880d681SAndroid Build Coastguard Worker
183*9880d681SAndroid Build Coastguard Worker  ; Floating point truncation costs.
184*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r80 = fptrunc double undef to float
185*9880d681SAndroid Build Coastguard Worker  %r80 = fptrunc double undef to float
186*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r81 = fptrunc <2 x double> undef to <2 x float>
187*9880d681SAndroid Build Coastguard Worker  %r81 = fptrunc <2 x double> undef to <2 x float>
188*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r82 = fptrunc <4 x double> undef to <4 x float>
189*9880d681SAndroid Build Coastguard Worker  %r82 = fptrunc <4 x double> undef to <4 x float>
190*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r83 = fptrunc <8 x double> undef to <8 x float>
191*9880d681SAndroid Build Coastguard Worker  %r83 = fptrunc <8 x double> undef to <8 x float>
192*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r84 = fptrunc <16 x double> undef to <16 x float>
193*9880d681SAndroid Build Coastguard Worker  %r84 = fptrunc <16 x double> undef to <16 x float>
194*9880d681SAndroid Build Coastguard Worker
195*9880d681SAndroid Build Coastguard Worker  ; Floating point extension costs.
196*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r85 = fpext float undef to double
197*9880d681SAndroid Build Coastguard Worker  %r85 = fpext float undef to double
198*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r86 = fpext <2 x float> undef to <2 x double>
199*9880d681SAndroid Build Coastguard Worker  %r86 = fpext <2 x float> undef to <2 x double>
200*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r87 = fpext <4 x float> undef to <4 x double>
201*9880d681SAndroid Build Coastguard Worker  %r87 = fpext <4 x float> undef to <4 x double>
202*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r88 = fpext <8 x float> undef to <8 x double>
203*9880d681SAndroid Build Coastguard Worker  %r88 = fpext <8 x float> undef to <8 x double>
204*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r89 = fpext <16 x float> undef to <16 x double>
205*9880d681SAndroid Build Coastguard Worker  %r89 = fpext <16 x float> undef to <16 x double>
206*9880d681SAndroid Build Coastguard Worker
207*9880d681SAndroid Build Coastguard Worker  ;; Floating point to integer vector casts.
208*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r90 = fptoui <2 x float> undef to <2 x i1>
209*9880d681SAndroid Build Coastguard Worker  %r90 = fptoui <2 x float> undef to <2 x i1>
210*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r91 = fptosi <2 x float> undef to <2 x i1>
211*9880d681SAndroid Build Coastguard Worker  %r91 = fptosi <2 x float> undef to <2 x i1>
212*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r92 = fptoui <2 x float> undef to <2 x i8>
213*9880d681SAndroid Build Coastguard Worker  %r92 = fptoui <2 x float> undef to <2 x i8>
214*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r93 = fptosi <2 x float> undef to <2 x i8>
215*9880d681SAndroid Build Coastguard Worker  %r93 = fptosi <2 x float> undef to <2 x i8>
216*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r94 = fptoui <2 x float> undef to <2 x i16>
217*9880d681SAndroid Build Coastguard Worker  %r94 = fptoui <2 x float> undef to <2 x i16>
218*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r95 = fptosi <2 x float> undef to <2 x i16>
219*9880d681SAndroid Build Coastguard Worker  %r95 = fptosi <2 x float> undef to <2 x i16>
220*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r96 = fptoui <2 x float> undef to <2 x i32>
221*9880d681SAndroid Build Coastguard Worker  %r96 = fptoui <2 x float> undef to <2 x i32>
222*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r97 = fptosi <2 x float> undef to <2 x i32>
223*9880d681SAndroid Build Coastguard Worker  %r97 = fptosi <2 x float> undef to <2 x i32>
224*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r98 = fptoui <2 x float> undef to <2 x i64>
225*9880d681SAndroid Build Coastguard Worker  %r98 = fptoui <2 x float> undef to <2 x i64>
226*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r99 = fptosi <2 x float> undef to <2 x i64>
227*9880d681SAndroid Build Coastguard Worker  %r99 = fptosi <2 x float> undef to <2 x i64>
228*9880d681SAndroid Build Coastguard Worker
229*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r100 = fptoui <2 x double> undef to <2 x i1>
230*9880d681SAndroid Build Coastguard Worker  %r100 = fptoui <2 x double> undef to <2 x i1>
231*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r101 = fptosi <2 x double> undef to <2 x i1>
232*9880d681SAndroid Build Coastguard Worker  %r101 = fptosi <2 x double> undef to <2 x i1>
233*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r102 = fptoui <2 x double> undef to <2 x i8>
234*9880d681SAndroid Build Coastguard Worker  %r102 = fptoui <2 x double> undef to <2 x i8>
235*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r103 = fptosi <2 x double> undef to <2 x i8>
236*9880d681SAndroid Build Coastguard Worker  %r103 = fptosi <2 x double> undef to <2 x i8>
237*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r104 = fptoui <2 x double> undef to <2 x i16>
238*9880d681SAndroid Build Coastguard Worker  %r104 = fptoui <2 x double> undef to <2 x i16>
239*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 16 for instruction:   %r105 = fptosi <2 x double> undef to <2 x i16>
240*9880d681SAndroid Build Coastguard Worker  %r105 = fptosi <2 x double> undef to <2 x i16>
241*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r106 = fptoui <2 x double> undef to <2 x i32>
242*9880d681SAndroid Build Coastguard Worker  %r106 = fptoui <2 x double> undef to <2 x i32>
243*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r107 = fptosi <2 x double> undef to <2 x i32>
244*9880d681SAndroid Build Coastguard Worker  %r107 = fptosi <2 x double> undef to <2 x i32>
245*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r108 = fptoui <2 x double> undef to <2 x i64>
246*9880d681SAndroid Build Coastguard Worker  %r108 = fptoui <2 x double> undef to <2 x i64>
247*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r109 = fptosi <2 x double> undef to <2 x i64>
248*9880d681SAndroid Build Coastguard Worker  %r109 = fptosi <2 x double> undef to <2 x i64>
249*9880d681SAndroid Build Coastguard Worker
250*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r110 = fptoui <4 x float> undef to <4 x i1>
251*9880d681SAndroid Build Coastguard Worker  %r110 = fptoui <4 x float> undef to <4 x i1>
252*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 32 for instruction:   %r111 = fptosi <4 x float> undef to <4 x i1>
253*9880d681SAndroid Build Coastguard Worker  %r111 = fptosi <4 x float> undef to <4 x i1>
254*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r112 = fptoui <4 x float> undef to <4 x i8>
255*9880d681SAndroid Build Coastguard Worker  %r112 = fptoui <4 x float> undef to <4 x i8>
256*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r113 = fptosi <4 x float> undef to <4 x i8>
257*9880d681SAndroid Build Coastguard Worker  %r113 = fptosi <4 x float> undef to <4 x i8>
258*9880d681SAndroid Build Coastguard Worker
259*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r114 = fptoui <4 x float> undef to <4 x i16>
260*9880d681SAndroid Build Coastguard Worker  %r114 = fptoui <4 x float> undef to <4 x i16>
261*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r115 = fptosi <4 x float> undef to <4 x i16>
262*9880d681SAndroid Build Coastguard Worker  %r115 = fptosi <4 x float> undef to <4 x i16>
263*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r116 = fptoui <4 x float> undef to <4 x i32>
264*9880d681SAndroid Build Coastguard Worker  %r116 = fptoui <4 x float> undef to <4 x i32>
265*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r117 = fptosi <4 x float> undef to <4 x i32>
266*9880d681SAndroid Build Coastguard Worker  %r117 = fptosi <4 x float> undef to <4 x i32>
267*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r118 = fptoui <4 x float> undef to <4 x i64>
268*9880d681SAndroid Build Coastguard Worker  %r118 = fptoui <4 x float> undef to <4 x i64>
269*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r119 = fptosi <4 x float> undef to <4 x i64>
270*9880d681SAndroid Build Coastguard Worker  %r119 = fptosi <4 x float> undef to <4 x i64>
271*9880d681SAndroid Build Coastguard Worker
272*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r120 = fptoui <4 x double> undef to <4 x i1>
273*9880d681SAndroid Build Coastguard Worker  %r120 = fptoui <4 x double> undef to <4 x i1>
274*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r121 = fptosi <4 x double> undef to <4 x i1>
275*9880d681SAndroid Build Coastguard Worker  %r121 = fptosi <4 x double> undef to <4 x i1>
276*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r122 = fptoui <4 x double> undef to <4 x i8>
277*9880d681SAndroid Build Coastguard Worker  %r122 = fptoui <4 x double> undef to <4 x i8>
278*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r123 = fptosi <4 x double> undef to <4 x i8>
279*9880d681SAndroid Build Coastguard Worker  %r123 = fptosi <4 x double> undef to <4 x i8>
280*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r124 = fptoui <4 x double> undef to <4 x i16>
281*9880d681SAndroid Build Coastguard Worker  %r124 = fptoui <4 x double> undef to <4 x i16>
282*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 33 for instruction:   %r125 = fptosi <4 x double> undef to <4 x i16>
283*9880d681SAndroid Build Coastguard Worker  %r125 = fptosi <4 x double> undef to <4 x i16>
284*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 5 for instruction:   %r126 = fptoui <4 x double> undef to <4 x i32>
285*9880d681SAndroid Build Coastguard Worker  %r126 = fptoui <4 x double> undef to <4 x i32>
286*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 5 for instruction:   %r127 = fptosi <4 x double> undef to <4 x i32>
287*9880d681SAndroid Build Coastguard Worker  %r127 = fptosi <4 x double> undef to <4 x i32>
288*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r128 = fptoui <4 x double> undef to <4 x i64>
289*9880d681SAndroid Build Coastguard Worker  %r128 = fptoui <4 x double> undef to <4 x i64>
290*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r129 = fptosi <4 x double> undef to <4 x i64>
291*9880d681SAndroid Build Coastguard Worker  %r129 = fptosi <4 x double> undef to <4 x i64>
292*9880d681SAndroid Build Coastguard Worker
293*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r130 = fptoui <8 x float> undef to <8 x i1>
294*9880d681SAndroid Build Coastguard Worker  %r130 = fptoui <8 x float> undef to <8 x i1>
295*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 65 for instruction:   %r131 = fptosi <8 x float> undef to <8 x i1>
296*9880d681SAndroid Build Coastguard Worker  %r131 = fptosi <8 x float> undef to <8 x i1>
297*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r132 = fptoui <8 x float> undef to <8 x i8>
298*9880d681SAndroid Build Coastguard Worker  %r132 = fptoui <8 x float> undef to <8 x i8>
299*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r133 = fptosi <8 x float> undef to <8 x i8>
300*9880d681SAndroid Build Coastguard Worker  %r133 = fptosi <8 x float> undef to <8 x i8>
301*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r134 = fptoui <8 x float> undef to <8 x i16>
302*9880d681SAndroid Build Coastguard Worker  %r134 = fptoui <8 x float> undef to <8 x i16>
303*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r135 = fptosi <8 x float> undef to <8 x i16>
304*9880d681SAndroid Build Coastguard Worker  %r135 = fptosi <8 x float> undef to <8 x i16>
305*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r136 = fptoui <8 x float> undef to <8 x i32>
306*9880d681SAndroid Build Coastguard Worker  %r136 = fptoui <8 x float> undef to <8 x i32>
307*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r137 = fptosi <8 x float> undef to <8 x i32>
308*9880d681SAndroid Build Coastguard Worker  %r137 = fptosi <8 x float> undef to <8 x i32>
309*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r138 = fptoui <8 x float> undef to <8 x i64>
310*9880d681SAndroid Build Coastguard Worker  %r138 = fptoui <8 x float> undef to <8 x i64>
311*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r139 = fptosi <8 x float> undef to <8 x i64>
312*9880d681SAndroid Build Coastguard Worker  %r139 = fptosi <8 x float> undef to <8 x i64>
313*9880d681SAndroid Build Coastguard Worker
314*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r140 = fptoui <8 x double> undef to <8 x i1>
315*9880d681SAndroid Build Coastguard Worker  %r140 = fptoui <8 x double> undef to <8 x i1>
316*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r141 = fptosi <8 x double> undef to <8 x i1>
317*9880d681SAndroid Build Coastguard Worker  %r141 = fptosi <8 x double> undef to <8 x i1>
318*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r142 = fptoui <8 x double> undef to <8 x i8>
319*9880d681SAndroid Build Coastguard Worker  %r142 = fptoui <8 x double> undef to <8 x i8>
320*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r143 = fptosi <8 x double> undef to <8 x i8>
321*9880d681SAndroid Build Coastguard Worker  %r143 = fptosi <8 x double> undef to <8 x i8>
322*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r144 = fptoui <8 x double> undef to <8 x i16>
323*9880d681SAndroid Build Coastguard Worker  %r144 = fptoui <8 x double> undef to <8 x i16>
324*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 67 for instruction:   %r145 = fptosi <8 x double> undef to <8 x i16>
325*9880d681SAndroid Build Coastguard Worker  %r145 = fptosi <8 x double> undef to <8 x i16>
326*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 11 for instruction:   %r146 = fptoui <8 x double> undef to <8 x i32>
327*9880d681SAndroid Build Coastguard Worker  %r146 = fptoui <8 x double> undef to <8 x i32>
328*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 11 for instruction:   %r147 = fptosi <8 x double> undef to <8 x i32>
329*9880d681SAndroid Build Coastguard Worker  %r147 = fptosi <8 x double> undef to <8 x i32>
330*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r148 = fptoui <8 x double> undef to <8 x i64>
331*9880d681SAndroid Build Coastguard Worker  %r148 = fptoui <8 x double> undef to <8 x i64>
332*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r149 = fptosi <8 x double> undef to <8 x i64>
333*9880d681SAndroid Build Coastguard Worker  %r149 = fptosi <8 x double> undef to <8 x i64>
334*9880d681SAndroid Build Coastguard Worker
335*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r150 = fptoui <16 x float> undef to <16 x i1>
336*9880d681SAndroid Build Coastguard Worker  %r150 = fptoui <16 x float> undef to <16 x i1>
337*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 131 for instruction:   %r151 = fptosi <16 x float> undef to <16 x i1>
338*9880d681SAndroid Build Coastguard Worker  %r151 = fptosi <16 x float> undef to <16 x i1>
339*9880d681SAndroid Build Coastguard Worker ; CHECK:  Found an estimated cost of 15 for instruction:   %r152 = fptoui <16 x float> undef to <16 x i8>
340*9880d681SAndroid Build Coastguard Worker  %r152 = fptoui <16 x float> undef to <16 x i8>
341*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r153 = fptosi <16 x float> undef to <16 x i8>
342*9880d681SAndroid Build Coastguard Worker  %r153 = fptosi <16 x float> undef to <16 x i8>
343*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r154 = fptoui <16 x float> undef to <16 x i16>
344*9880d681SAndroid Build Coastguard Worker  %r154 = fptoui <16 x float> undef to <16 x i16>
345*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r155 = fptosi <16 x float> undef to <16 x i16>
346*9880d681SAndroid Build Coastguard Worker  %r155 = fptosi <16 x float> undef to <16 x i16>
347*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r156 = fptoui <16 x float> undef to <16 x i32>
348*9880d681SAndroid Build Coastguard Worker  %r156 = fptoui <16 x float> undef to <16 x i32>
349*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r157 = fptosi <16 x float> undef to <16 x i32>
350*9880d681SAndroid Build Coastguard Worker  %r157 = fptosi <16 x float> undef to <16 x i32>
351*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 263 for instruction:   %r158 = fptoui <16 x float> undef to <16 x i64>
352*9880d681SAndroid Build Coastguard Worker  %r158 = fptoui <16 x float> undef to <16 x i64>
353*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 263 for instruction:   %r159 = fptosi <16 x float> undef to <16 x i64>
354*9880d681SAndroid Build Coastguard Worker  %r159 = fptosi <16 x float> undef to <16 x i64>
355*9880d681SAndroid Build Coastguard Worker
356*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r160 = fptoui <16 x double> undef to <16 x i1>
357*9880d681SAndroid Build Coastguard Worker  %r160 = fptoui <16 x double> undef to <16 x i1>
358*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r161 = fptosi <16 x double> undef to <16 x i1>
359*9880d681SAndroid Build Coastguard Worker  %r161 = fptosi <16 x double> undef to <16 x i1>
360*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r162 = fptoui <16 x double> undef to <16 x i8>
361*9880d681SAndroid Build Coastguard Worker  %r162 = fptoui <16 x double> undef to <16 x i8>
362*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r163 = fptosi <16 x double> undef to <16 x i8>
363*9880d681SAndroid Build Coastguard Worker  %r163 = fptosi <16 x double> undef to <16 x i8>
364*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r164 = fptoui <16 x double> undef to <16 x i16>
365*9880d681SAndroid Build Coastguard Worker  %r164 = fptoui <16 x double> undef to <16 x i16>
366*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 135 for instruction:   %r165 = fptosi <16 x double> undef to <16 x i16>
367*9880d681SAndroid Build Coastguard Worker  %r165 = fptosi <16 x double> undef to <16 x i16>
368*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 23 for instruction:   %r166 = fptoui <16 x double> undef to <16 x i32>
369*9880d681SAndroid Build Coastguard Worker  %r166 = fptoui <16 x double> undef to <16 x i32>
370*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 23 for instruction:   %r167 = fptosi <16 x double> undef to <16 x i32>
371*9880d681SAndroid Build Coastguard Worker  %r167 = fptosi <16 x double> undef to <16 x i32>
372*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 263 for instruction:   %r168 = fptoui <16 x double> undef to <16 x i64>
373*9880d681SAndroid Build Coastguard Worker  %r168 = fptoui <16 x double> undef to <16 x i64>
374*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 263 for instruction:   %r169 = fptosi <16 x double> undef to <16 x i64>
375*9880d681SAndroid Build Coastguard Worker  %r169 = fptosi <16 x double> undef to <16 x i64>
376*9880d681SAndroid Build Coastguard Worker
377*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 12 for instruction:   %r170 = uitofp <2 x i1> undef to <2 x float>
378*9880d681SAndroid Build Coastguard Worker  %r170 = uitofp <2 x i1> undef to <2 x float>
379*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 12 for instruction:   %r171 = sitofp <2 x i1> undef to <2 x float>
380*9880d681SAndroid Build Coastguard Worker  %r171 = sitofp <2 x i1> undef to <2 x float>
381*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r172 = uitofp <2 x i8> undef to <2 x float>
382*9880d681SAndroid Build Coastguard Worker  %r172 = uitofp <2 x i8> undef to <2 x float>
383*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r173 = sitofp <2 x i8> undef to <2 x float>
384*9880d681SAndroid Build Coastguard Worker  %r173 = sitofp <2 x i8> undef to <2 x float>
385*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r174 = uitofp <2 x i16> undef to <2 x float>
386*9880d681SAndroid Build Coastguard Worker  %r174 = uitofp <2 x i16> undef to <2 x float>
387*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r175 = sitofp <2 x i16> undef to <2 x float>
388*9880d681SAndroid Build Coastguard Worker  %r175 = sitofp <2 x i16> undef to <2 x float>
389*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r176 = uitofp <2 x i32> undef to <2 x float>
390*9880d681SAndroid Build Coastguard Worker  %r176 = uitofp <2 x i32> undef to <2 x float>
391*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r177 = sitofp <2 x i32> undef to <2 x float>
392*9880d681SAndroid Build Coastguard Worker  %r177 = sitofp <2 x i32> undef to <2 x float>
393*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 28 for instruction:   %r178 = uitofp <2 x i64> undef to <2 x float>
394*9880d681SAndroid Build Coastguard Worker  %r178 = uitofp <2 x i64> undef to <2 x float>
395*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 28 for instruction:   %r179 = sitofp <2 x i64> undef to <2 x float>
396*9880d681SAndroid Build Coastguard Worker  %r179 = sitofp <2 x i64> undef to <2 x float>
397*9880d681SAndroid Build Coastguard Worker
398*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r180 = uitofp <2 x i1> undef to <2 x double>
399*9880d681SAndroid Build Coastguard Worker  %r180 = uitofp <2 x i1> undef to <2 x double>
400*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r181 = sitofp <2 x i1> undef to <2 x double>
401*9880d681SAndroid Build Coastguard Worker  %r181 = sitofp <2 x i1> undef to <2 x double>
402*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r182 = uitofp <2 x i8> undef to <2 x double>
403*9880d681SAndroid Build Coastguard Worker  %r182 = uitofp <2 x i8> undef to <2 x double>
404*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r183 = sitofp <2 x i8> undef to <2 x double>
405*9880d681SAndroid Build Coastguard Worker  %r183 = sitofp <2 x i8> undef to <2 x double>
406*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r184 = uitofp <2 x i16> undef to <2 x double>
407*9880d681SAndroid Build Coastguard Worker  %r184 = uitofp <2 x i16> undef to <2 x double>
408*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r185 = sitofp <2 x i16> undef to <2 x double>
409*9880d681SAndroid Build Coastguard Worker  %r185 = sitofp <2 x i16> undef to <2 x double>
410*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r186 = uitofp <2 x i32> undef to <2 x double>
411*9880d681SAndroid Build Coastguard Worker  %r186 = uitofp <2 x i32> undef to <2 x double>
412*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r187 = sitofp <2 x i32> undef to <2 x double>
413*9880d681SAndroid Build Coastguard Worker  %r187 = sitofp <2 x i32> undef to <2 x double>
414*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 24 for instruction:   %r188 = uitofp <2 x i64> undef to <2 x double>
415*9880d681SAndroid Build Coastguard Worker  %r188 = uitofp <2 x i64> undef to <2 x double>
416*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 24 for instruction:   %r189 = sitofp <2 x i64> undef to <2 x double>
417*9880d681SAndroid Build Coastguard Worker  %r189 = sitofp <2 x i64> undef to <2 x double>
418*9880d681SAndroid Build Coastguard Worker
419*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r190 = uitofp <4 x i1> undef to <4 x float>
420*9880d681SAndroid Build Coastguard Worker  %r190 = uitofp <4 x i1> undef to <4 x float>
421*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r191 = sitofp <4 x i1> undef to <4 x float>
422*9880d681SAndroid Build Coastguard Worker  %r191 = sitofp <4 x i1> undef to <4 x float>
423*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r192 = uitofp <4 x i8> undef to <4 x float>
424*9880d681SAndroid Build Coastguard Worker  %r192 = uitofp <4 x i8> undef to <4 x float>
425*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 3 for instruction:   %r193 = sitofp <4 x i8> undef to <4 x float>
426*9880d681SAndroid Build Coastguard Worker  %r193 = sitofp <4 x i8> undef to <4 x float>
427*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r194 = uitofp <4 x i16> undef to <4 x float>
428*9880d681SAndroid Build Coastguard Worker  %r194 = uitofp <4 x i16> undef to <4 x float>
429*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r195 = sitofp <4 x i16> undef to <4 x float>
430*9880d681SAndroid Build Coastguard Worker  %r195 = sitofp <4 x i16> undef to <4 x float>
431*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r196 = uitofp <4 x i32> undef to <4 x float>
432*9880d681SAndroid Build Coastguard Worker  %r196 = uitofp <4 x i32> undef to <4 x float>
433*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 1 for instruction:   %r197 = sitofp <4 x i32> undef to <4 x float>
434*9880d681SAndroid Build Coastguard Worker  %r197 = sitofp <4 x i32> undef to <4 x float>
435*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 57 for instruction:   %r198 = uitofp <4 x i64> undef to <4 x float>
436*9880d681SAndroid Build Coastguard Worker  %r198 = uitofp <4 x i64> undef to <4 x float>
437*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 57 for instruction:   %r199 = sitofp <4 x i64> undef to <4 x float>
438*9880d681SAndroid Build Coastguard Worker  %r199 = sitofp <4 x i64> undef to <4 x float>
439*9880d681SAndroid Build Coastguard Worker
440*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 17 for instruction:   %r200 = uitofp <4 x i1> undef to <4 x double>
441*9880d681SAndroid Build Coastguard Worker  %r200 = uitofp <4 x i1> undef to <4 x double>
442*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 17 for instruction:   %r201 = sitofp <4 x i1> undef to <4 x double>
443*9880d681SAndroid Build Coastguard Worker  %r201 = sitofp <4 x i1> undef to <4 x double>
444*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 9 for instruction:   %r202 = uitofp <4 x i8> undef to <4 x double>
445*9880d681SAndroid Build Coastguard Worker  %r202 = uitofp <4 x i8> undef to <4 x double>
446*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 9 for instruction:   %r203 = sitofp <4 x i8> undef to <4 x double>
447*9880d681SAndroid Build Coastguard Worker  %r203 = sitofp <4 x i8> undef to <4 x double>
448*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r204 = uitofp <4 x i16> undef to <4 x double>
449*9880d681SAndroid Build Coastguard Worker  %r204 = uitofp <4 x i16> undef to <4 x double>
450*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r205 = sitofp <4 x i16> undef to <4 x double>
451*9880d681SAndroid Build Coastguard Worker  %r205 = sitofp <4 x i16> undef to <4 x double>
452*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 5 for instruction:   %r206 = uitofp <4 x i32> undef to <4 x double>
453*9880d681SAndroid Build Coastguard Worker  %r206 = uitofp <4 x i32> undef to <4 x double>
454*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 5 for instruction:   %r207 = sitofp <4 x i32> undef to <4 x double>
455*9880d681SAndroid Build Coastguard Worker  %r207 = sitofp <4 x i32> undef to <4 x double>
456*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 49 for instruction:   %r208 = uitofp <4 x i64> undef to <4 x double>
457*9880d681SAndroid Build Coastguard Worker  %r208 = uitofp <4 x i64> undef to <4 x double>
458*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 49 for instruction:   %r209 = sitofp <4 x i64> undef to <4 x double>
459*9880d681SAndroid Build Coastguard Worker  %r209 = sitofp <4 x i64> undef to <4 x double>
460*9880d681SAndroid Build Coastguard Worker
461*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r210 = uitofp <8 x i1> undef to <8 x float>
462*9880d681SAndroid Build Coastguard Worker  %r210 = uitofp <8 x i1> undef to <8 x float>
463*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r211 = sitofp <8 x i1> undef to <8 x float>
464*9880d681SAndroid Build Coastguard Worker  %r211 = sitofp <8 x i1> undef to <8 x float>
465*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r212 = uitofp <8 x i8> undef to <8 x float>
466*9880d681SAndroid Build Coastguard Worker  %r212 = uitofp <8 x i8> undef to <8 x float>
467*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 7 for instruction:   %r213 = sitofp <8 x i8> undef to <8 x float>
468*9880d681SAndroid Build Coastguard Worker  %r213 = sitofp <8 x i8> undef to <8 x float>
469*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r214 = uitofp <8 x i16> undef to <8 x float>
470*9880d681SAndroid Build Coastguard Worker  %r214 = uitofp <8 x i16> undef to <8 x float>
471*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r215 = sitofp <8 x i16> undef to <8 x float>
472*9880d681SAndroid Build Coastguard Worker  %r215 = sitofp <8 x i16> undef to <8 x float>
473*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r216 = uitofp <8 x i32> undef to <8 x float>
474*9880d681SAndroid Build Coastguard Worker  %r216 = uitofp <8 x i32> undef to <8 x float>
475*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 2 for instruction:   %r217 = sitofp <8 x i32> undef to <8 x float>
476*9880d681SAndroid Build Coastguard Worker  %r217 = sitofp <8 x i32> undef to <8 x float>
477*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 115 for instruction:   %r218 = uitofp <8 x i64> undef to <8 x float>
478*9880d681SAndroid Build Coastguard Worker  %r218 = uitofp <8 x i64> undef to <8 x float>
479*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 115 for instruction:   %r219 = sitofp <8 x i64> undef to <8 x float>
480*9880d681SAndroid Build Coastguard Worker  %r219 = sitofp <8 x i64> undef to <8 x float>
481*9880d681SAndroid Build Coastguard Worker
482*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 35 for instruction:   %r220 = uitofp <8 x i1> undef to <8 x double>
483*9880d681SAndroid Build Coastguard Worker  %r220 = uitofp <8 x i1> undef to <8 x double>
484*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 35 for instruction:   %r221 = sitofp <8 x i1> undef to <8 x double>
485*9880d681SAndroid Build Coastguard Worker  %r221 = sitofp <8 x i1> undef to <8 x double>
486*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 19 for instruction:   %r222 = uitofp <8 x i8> undef to <8 x double>
487*9880d681SAndroid Build Coastguard Worker  %r222 = uitofp <8 x i8> undef to <8 x double>
488*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 19 for instruction:   %r223 = sitofp <8 x i8> undef to <8 x double>
489*9880d681SAndroid Build Coastguard Worker  %r223 = sitofp <8 x i8> undef to <8 x double>
490*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r224 = uitofp <8 x i16> undef to <8 x double>
491*9880d681SAndroid Build Coastguard Worker  %r224 = uitofp <8 x i16> undef to <8 x double>
492*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r225 = sitofp <8 x i16> undef to <8 x double>
493*9880d681SAndroid Build Coastguard Worker  %r225 = sitofp <8 x i16> undef to <8 x double>
494*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r226 = uitofp <8 x i16> undef to <8 x double>
495*9880d681SAndroid Build Coastguard Worker  %r226 = uitofp <8 x i16> undef to <8 x double>
496*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r227 = sitofp <8 x i16> undef to <8 x double>
497*9880d681SAndroid Build Coastguard Worker  %r227 = sitofp <8 x i16> undef to <8 x double>
498*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 99 for instruction:   %r228 = uitofp <8 x i64> undef to <8 x double>
499*9880d681SAndroid Build Coastguard Worker  %r228 = uitofp <8 x i64> undef to <8 x double>
500*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 99 for instruction:   %r229 = sitofp <8 x i64> undef to <8 x double>
501*9880d681SAndroid Build Coastguard Worker  %r229 = sitofp <8 x i64> undef to <8 x double>
502*9880d681SAndroid Build Coastguard Worker
503*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r230 = uitofp <16 x i1> undef to <16 x float>
504*9880d681SAndroid Build Coastguard Worker  %r230 = uitofp <16 x i1> undef to <16 x float>
505*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r231 = sitofp <16 x i1> undef to <16 x float>
506*9880d681SAndroid Build Coastguard Worker  %r231 = sitofp <16 x i1> undef to <16 x float>
507*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r232 = uitofp <16 x i8> undef to <16 x float>
508*9880d681SAndroid Build Coastguard Worker  %r232 = uitofp <16 x i8> undef to <16 x float>
509*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 15 for instruction:   %r233 = sitofp <16 x i8> undef to <16 x float>
510*9880d681SAndroid Build Coastguard Worker  %r233 = sitofp <16 x i8> undef to <16 x float>
511*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r234 = uitofp <16 x i16> undef to <16 x float>
512*9880d681SAndroid Build Coastguard Worker  %r234 = uitofp <16 x i16> undef to <16 x float>
513*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 8 for instruction:   %r235 = sitofp <16 x i16> undef to <16 x float>
514*9880d681SAndroid Build Coastguard Worker  %r235 = sitofp <16 x i16> undef to <16 x float>
515*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r236 = uitofp <16 x i32> undef to <16 x float>
516*9880d681SAndroid Build Coastguard Worker  %r236 = uitofp <16 x i32> undef to <16 x float>
517*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 4 for instruction:   %r237 = sitofp <16 x i32> undef to <16 x float>
518*9880d681SAndroid Build Coastguard Worker  %r237 = sitofp <16 x i32> undef to <16 x float>
519*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 231 for instruction:   %r238 = uitofp <16 x i64> undef to <16 x float>
520*9880d681SAndroid Build Coastguard Worker  %r238 = uitofp <16 x i64> undef to <16 x float>
521*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 231 for instruction:   %r239 = sitofp <16 x i64> undef to <16 x float>
522*9880d681SAndroid Build Coastguard Worker  %r239 = sitofp <16 x i64> undef to <16 x float>
523*9880d681SAndroid Build Coastguard Worker
524*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 71 for instruction:   %r240 = uitofp <16 x i1> undef to <16 x double>
525*9880d681SAndroid Build Coastguard Worker  %r240 = uitofp <16 x i1> undef to <16 x double>
526*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 71 for instruction:   %r241 = sitofp <16 x i1> undef to <16 x double>
527*9880d681SAndroid Build Coastguard Worker  %r241 = sitofp <16 x i1> undef to <16 x double>
528*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 39 for instruction:   %r242 = uitofp <16 x i8> undef to <16 x double>
529*9880d681SAndroid Build Coastguard Worker  %r242 = uitofp <16 x i8> undef to <16 x double>
530*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 39 for instruction:   %r243 = sitofp <16 x i8> undef to <16 x double>
531*9880d681SAndroid Build Coastguard Worker  %r243 = sitofp <16 x i8> undef to <16 x double>
532*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 31 for instruction:   %r244 = uitofp <16 x i16> undef to <16 x double>
533*9880d681SAndroid Build Coastguard Worker  %r244 = uitofp <16 x i16> undef to <16 x double>
534*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 31 for instruction:   %r245 = sitofp <16 x i16> undef to <16 x double>
535*9880d681SAndroid Build Coastguard Worker  %r245 = sitofp <16 x i16> undef to <16 x double>
536*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 31 for instruction:   %r246 = uitofp <16 x i16> undef to <16 x double>
537*9880d681SAndroid Build Coastguard Worker  %r246 = uitofp <16 x i16> undef to <16 x double>
538*9880d681SAndroid Build Coastguard Worker  ; CHECK:  Found an estimated cost of 31 for instruction:   %r247 = sitofp <16 x i16> undef to <16 x double>
539*9880d681SAndroid Build Coastguard Worker  %r247 = sitofp <16 x i16> undef to <16 x double>
540*9880d681SAndroid Build Coastguard Worker  ; CHECK:   Found an estimated cost of 199 for instruction:   %r248 = uitofp <16 x i64> undef to <16 x double>
541*9880d681SAndroid Build Coastguard Worker  %r248 = uitofp <16 x i64> undef to <16 x double>
542*9880d681SAndroid Build Coastguard Worker  ; CHECK:   Found an estimated cost of 199 for instruction:   %r249 = sitofp <16 x i64> undef to <16 x double>
543*9880d681SAndroid Build Coastguard Worker  %r249 = sitofp <16 x i64> undef to <16 x double>
544*9880d681SAndroid Build Coastguard Worker
545*9880d681SAndroid Build Coastguard Worker  ; CHECK:   Found an estimated cost of 0 for instruction:   ret i32 undef
546*9880d681SAndroid Build Coastguard Worker  ret i32 undef
547*9880d681SAndroid Build Coastguard Worker}
548*9880d681SAndroid Build Coastguard Worker
549