blob: 72308834c535929628b8d544353ccfe9b22031c5 [file] [log] [blame]
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +00001; RUN: opt < %s -cost-model -analyze -mtriple=thumbv7-apple-ios6.0.0 -mcpu=cortex-a8 | FileCheck %s
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +00002target 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"
3target triple = "thumbv7-apple-ios6.0.0"
4
5define i32 @casts() {
6
7 ; -- scalars --
Silviu Barangad5ac2692015-08-17 15:57:05 +00008 ; CHECK: Found an estimated cost of 1 for instruction: %r0 = sext i1 undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +00009 %r0 = sext i1 undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000010 ; CHECK: Found an estimated cost of 1 for instruction: %r1 = zext i1 undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000011 %r1 = zext i1 undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000012 ; CHECK: Found an estimated cost of 1 for instruction: %r2 = sext i1 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000013 %r2 = sext i1 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000014 ; CHECK: Found an estimated cost of 1 for instruction: %r3 = zext i1 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000015 %r3 = zext i1 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000016 ; CHECK: Found an estimated cost of 1 for instruction: %r4 = sext i1 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000017 %r4 = sext i1 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000018 ; CHECK: Found an estimated cost of 1 for instruction: %r5 = zext i1 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000019 %r5 = zext i1 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000020 ; CHECK: Found an estimated cost of 1 for instruction: %r6 = sext i1 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000021 %r6 = sext i1 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000022 ; CHECK: Found an estimated cost of 1 for instruction: %r7 = zext i1 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000023 %r7 = zext i1 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000024 ; CHECK: Found an estimated cost of 0 for instruction: %r8 = trunc i8 undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000025 %r8 = trunc i8 undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000026 ; CHECK: Found an estimated cost of 1 for instruction: %r9 = sext i8 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000027 %r9 = sext i8 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000028 ; CHECK: Found an estimated cost of 1 for instruction: %r10 = zext i8 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000029 %r10 = zext i8 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000030 ; CHECK: Found an estimated cost of 1 for instruction: %r11 = sext i8 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000031 %r11 = sext i8 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000032 ; CHECK: Found an estimated cost of 1 for instruction: %r12 = zext i8 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000033 %r12 = zext i8 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000034 ; CHECK: Found an estimated cost of 1 for instruction: %r13 = sext i8 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000035 %r13 = sext i8 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000036 ; CHECK: Found an estimated cost of 1 for instruction: %r14 = zext i8 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000037 %r14 = zext i8 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000038 ; CHECK: Found an estimated cost of 0 for instruction: %r15 = trunc i16 undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000039 %r15 = trunc i16 undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000040 ; CHECK: Found an estimated cost of 0 for instruction: %r16 = trunc i16 undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000041 %r16 = trunc i16 undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000042 ; CHECK: Found an estimated cost of 1 for instruction: %r17 = sext i16 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000043 %r17 = sext i16 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000044 ; CHECK: Found an estimated cost of 1 for instruction: %r18 = zext i16 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000045 %r18 = zext i16 undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000046 ; CHECK: Found an estimated cost of 2 for instruction: %r19 = sext i16 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000047 %r19 = sext i16 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000048 ; CHECK: Found an estimated cost of 1 for instruction: %r20 = zext i16 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000049 %r20 = zext i16 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000050 ; CHECK: Found an estimated cost of 0 for instruction: %r21 = trunc i32 undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000051 %r21 = trunc i32 undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000052 ; CHECK: Found an estimated cost of 0 for instruction: %r22 = trunc i32 undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000053 %r22 = trunc i32 undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000054 ; CHECK: Found an estimated cost of 0 for instruction: %r23 = trunc i32 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000055 %r23 = trunc i32 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000056 ; CHECK: Found an estimated cost of 1 for instruction: %r24 = sext i32 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000057 %r24 = sext i32 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000058 ; CHECK: Found an estimated cost of 1 for instruction: %r25 = zext i32 undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000059 %r25 = zext i32 undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000060 ; CHECK: Found an estimated cost of 0 for instruction: %r26 = trunc i64 undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000061 %r26 = trunc i64 undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000062 ; CHECK: Found an estimated cost of 0 for instruction: %r27 = trunc i64 undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000063 %r27 = trunc i64 undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000064 ; CHECK: Found an estimated cost of 0 for instruction: %r28 = trunc i64 undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000065 %r28 = trunc i64 undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000066 ; CHECK: Found an estimated cost of 0 for instruction: %r29 = trunc i64 undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000067 %r29 = trunc i64 undef to i32
68
69 ; -- floating point conversions --
70 ; Moves between scalar and NEON registers.
Silviu Barangad5ac2692015-08-17 15:57:05 +000071 ; CHECK: Found an estimated cost of 2 for instruction: %r30 = fptoui float undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000072 %r30 = fptoui float undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000073 ; CHECK: Found an estimated cost of 2 for instruction: %r31 = fptosi float undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000074 %r31 = fptosi float undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000075 ; CHECK: Found an estimated cost of 2 for instruction: %r32 = fptoui float undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000076 %r32 = fptoui float undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000077 ; CHECK: Found an estimated cost of 2 for instruction: %r33 = fptosi float undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000078 %r33 = fptosi float undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000079 ; CHECK: Found an estimated cost of 2 for instruction: %r34 = fptoui float undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000080 %r34 = fptoui float undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000081 ; CHECK: Found an estimated cost of 2 for instruction: %r35 = fptosi float undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000082 %r35 = fptosi float undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +000083 ; CHECK: Found an estimated cost of 2 for instruction: %r36 = fptoui float undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000084 %r36 = fptoui float undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000085 ; CHECK: Found an estimated cost of 2 for instruction: %r37 = fptosi float undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000086 %r37 = fptosi float undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +000087 ; CHECK: Found an estimated cost of 10 for instruction: %r38 = fptoui float undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000088 %r38 = fptoui float undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000089 ; CHECK: Found an estimated cost of 10 for instruction: %r39 = fptosi float undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000090 %r39 = fptosi float undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +000091 ; CHECK: Found an estimated cost of 2 for instruction: %r40 = fptoui double undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000092 %r40 = fptoui double undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000093 ; CHECK: Found an estimated cost of 2 for instruction: %r41 = fptosi double undef to i1
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000094 %r41 = fptosi double undef to i1
Silviu Barangad5ac2692015-08-17 15:57:05 +000095 ; CHECK: Found an estimated cost of 2 for instruction: %r42 = fptoui double undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000096 %r42 = fptoui double undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000097 ; CHECK: Found an estimated cost of 2 for instruction: %r43 = fptosi double undef to i8
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +000098 %r43 = fptosi double undef to i8
Silviu Barangad5ac2692015-08-17 15:57:05 +000099 ; CHECK: Found an estimated cost of 2 for instruction: %r44 = fptoui double undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000100 %r44 = fptoui double undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +0000101 ; CHECK: Found an estimated cost of 2 for instruction: %r45 = fptosi double undef to i16
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000102 %r45 = fptosi double undef to i16
Silviu Barangad5ac2692015-08-17 15:57:05 +0000103 ; CHECK: Found an estimated cost of 2 for instruction: %r46 = fptoui double undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000104 %r46 = fptoui double undef to i32
Silviu Barangad5ac2692015-08-17 15:57:05 +0000105 ; CHECK: Found an estimated cost of 2 for instruction: %r47 = fptosi double undef to i32
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000106 %r47 = fptosi double undef to i32
107 ; Function call
Silviu Barangad5ac2692015-08-17 15:57:05 +0000108 ; CHECK: Found an estimated cost of 10 for instruction: %r48 = fptoui double undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000109 %r48 = fptoui double undef to i64
Silviu Barangad5ac2692015-08-17 15:57:05 +0000110 ; CHECK: Found an estimated cost of 10 for instruction: %r49 = fptosi double undef to i64
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000111 %r49 = fptosi double undef to i64
112
Silviu Barangad5ac2692015-08-17 15:57:05 +0000113 ; CHECK: Found an estimated cost of 2 for instruction: %r50 = sitofp i1 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000114 %r50 = sitofp i1 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000115 ; CHECK: Found an estimated cost of 2 for instruction: %r51 = uitofp i1 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000116 %r51 = uitofp i1 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000117 ; CHECK: Found an estimated cost of 2 for instruction: %r52 = sitofp i1 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000118 %r52 = sitofp i1 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000119 ; CHECK: Found an estimated cost of 2 for instruction: %r53 = uitofp i1 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000120 %r53 = uitofp i1 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000121 ; CHECK: Found an estimated cost of 2 for instruction: %r54 = sitofp i8 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000122 %r54 = sitofp i8 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000123 ; CHECK: Found an estimated cost of 2 for instruction: %r55 = uitofp i8 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000124 %r55 = uitofp i8 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000125 ; CHECK: Found an estimated cost of 2 for instruction: %r56 = sitofp i8 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000126 %r56 = sitofp i8 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000127 ; CHECK: Found an estimated cost of 2 for instruction: %r57 = uitofp i8 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000128 %r57 = uitofp i8 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000129 ; CHECK: Found an estimated cost of 2 for instruction: %r58 = sitofp i16 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000130 %r58 = sitofp i16 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000131 ; CHECK: Found an estimated cost of 2 for instruction: %r59 = uitofp i16 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000132 %r59 = uitofp i16 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000133 ; CHECK: Found an estimated cost of 2 for instruction: %r60 = sitofp i16 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000134 %r60 = sitofp i16 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000135 ; CHECK: Found an estimated cost of 2 for instruction: %r61 = uitofp i16 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000136 %r61 = uitofp i16 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000137 ; CHECK: Found an estimated cost of 2 for instruction: %r62 = sitofp i32 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000138 %r62 = sitofp i32 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000139 ; CHECK: Found an estimated cost of 2 for instruction: %r63 = uitofp i32 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000140 %r63 = uitofp i32 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000141 ; CHECK: Found an estimated cost of 2 for instruction: %r64 = sitofp i32 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000142 %r64 = sitofp i32 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000143 ; CHECK: Found an estimated cost of 2 for instruction: %r65 = uitofp i32 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000144 %r65 = uitofp i32 undef to double
145 ; Function call
Silviu Barangad5ac2692015-08-17 15:57:05 +0000146 ; CHECK: Found an estimated cost of 10 for instruction: %r66 = sitofp i64 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000147 %r66 = sitofp i64 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000148 ; CHECK: Found an estimated cost of 10 for instruction: %r67 = uitofp i64 undef to float
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000149 %r67 = uitofp i64 undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000150 ; CHECK: Found an estimated cost of 10 for instruction: %r68 = sitofp i64 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000151 %r68 = sitofp i64 undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000152 ; CHECK: Found an estimated cost of 10 for instruction: %r69 = uitofp i64 undef to double
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000153 %r69 = uitofp i64 undef to double
154
Silviu Barangad5ac2692015-08-17 15:57:05 +0000155 ; CHECK: Found an estimated cost of 3 for instruction: %r70 = sext <8 x i8> undef to <8 x i32>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000156 %r70 = sext <8 x i8> undef to <8 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000157 ; CHECK: Found an estimated cost of 6 for instruction: %r71 = sext <16 x i8> undef to <16 x i32>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000158 %r71 = sext <16 x i8> undef to <16 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000159 ; CHECK: Found an estimated cost of 3 for instruction: %r72 = zext <8 x i8> undef to <8 x i32>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000160 %r72 = zext <8 x i8> undef to <8 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000161 ; CHECK: Found an estimated cost of 6 for instruction: %r73 = zext <16 x i8> undef to <16 x i32>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000162 %r73 = zext <16 x i8> undef to <16 x i32>
Renato Golin227eb6f2013-03-19 08:15:38 +0000163
Silviu Barangad5ac2692015-08-17 15:57:05 +0000164 ; CHECK: Found an estimated cost of 7 for instruction: %rext_0 = sext <8 x i8> undef to <8 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000165 %rext_0 = sext <8 x i8> undef to <8 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000166 ; CHECK: Found an estimated cost of 7 for instruction: %rext_1 = zext <8 x i8> undef to <8 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000167 %rext_1 = zext <8 x i8> undef to <8 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000168 ; CHECK: Found an estimated cost of 6 for instruction: %rext_2 = sext <8 x i16> undef to <8 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000169 %rext_2 = sext <8 x i16> undef to <8 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000170 ; CHECK: Found an estimated cost of 6 for instruction: %rext_3 = zext <8 x i16> undef to <8 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000171 %rext_3 = zext <8 x i16> undef to <8 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000172 ; CHECK: Found an estimated cost of 3 for instruction: %rext_4 = sext <4 x i16> undef to <4 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000173 %rext_4 = sext <4 x i16> undef to <4 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000174 ; CHECK: Found an estimated cost of 3 for instruction: %rext_5 = zext <4 x i16> undef to <4 x i64>
Renato Golin227eb6f2013-03-19 08:15:38 +0000175 %rext_5 = zext <4 x i16> undef to <4 x i64>
176
177 ; Vector cast cost of instructions lowering the cast to the stack.
Silviu Barangad5ac2692015-08-17 15:57:05 +0000178 ; CHECK: Found an estimated cost of 3 for instruction: %r74 = trunc <8 x i32> undef to <8 x i8>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000179 %r74 = trunc <8 x i32> undef to <8 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000180 ; CHECK: Found an estimated cost of 6 for instruction: %r75 = trunc <16 x i32> undef to <16 x i8>
Arnold Schwaighofer90774f32013-03-12 21:19:22 +0000181 %r75 = trunc <16 x i32> undef to <16 x i8>
182
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000183 ; Floating point truncation costs.
Silviu Barangad5ac2692015-08-17 15:57:05 +0000184 ; CHECK: Found an estimated cost of 1 for instruction: %r80 = fptrunc double undef to float
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000185 %r80 = fptrunc double undef to float
Silviu Barangad5ac2692015-08-17 15:57:05 +0000186 ; CHECK: Found an estimated cost of 2 for instruction: %r81 = fptrunc <2 x double> undef to <2 x float>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000187 %r81 = fptrunc <2 x double> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000188 ; CHECK: Found an estimated cost of 4 for instruction: %r82 = fptrunc <4 x double> undef to <4 x float>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000189 %r82 = fptrunc <4 x double> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000190 ; CHECK: Found an estimated cost of 8 for instruction: %r83 = fptrunc <8 x double> undef to <8 x float>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000191 %r83 = fptrunc <8 x double> undef to <8 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000192 ; CHECK: Found an estimated cost of 16 for instruction: %r84 = fptrunc <16 x double> undef to <16 x float>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000193 %r84 = fptrunc <16 x double> undef to <16 x float>
194
195 ; Floating point extension costs.
Silviu Barangad5ac2692015-08-17 15:57:05 +0000196 ; CHECK: Found an estimated cost of 1 for instruction: %r85 = fpext float undef to double
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000197 %r85 = fpext float undef to double
Silviu Barangad5ac2692015-08-17 15:57:05 +0000198 ; CHECK: Found an estimated cost of 2 for instruction: %r86 = fpext <2 x float> undef to <2 x double>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000199 %r86 = fpext <2 x float> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000200 ; CHECK: Found an estimated cost of 4 for instruction: %r87 = fpext <4 x float> undef to <4 x double>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000201 %r87 = fpext <4 x float> undef to <4 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000202 ; CHECK: Found an estimated cost of 8 for instruction: %r88 = fpext <8 x float> undef to <8 x double>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000203 %r88 = fpext <8 x float> undef to <8 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000204 ; CHECK: Found an estimated cost of 16 for instruction: %r89 = fpext <16 x float> undef to <16 x double>
Arnold Schwaighoferf5284ff2013-03-15 15:10:47 +0000205 %r89 = fpext <16 x float> undef to <16 x double>
206
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000207 ;; Floating point to integer vector casts.
Silviu Barangad5ac2692015-08-17 15:57:05 +0000208 ; CHECK: Found an estimated cost of 1 for instruction: %r90 = fptoui <2 x float> undef to <2 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000209 %r90 = fptoui <2 x float> undef to <2 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000210 ; CHECK: Found an estimated cost of 1 for instruction: %r91 = fptosi <2 x float> undef to <2 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000211 %r91 = fptosi <2 x float> undef to <2 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000212 ; CHECK: Found an estimated cost of 1 for instruction: %r92 = fptoui <2 x float> undef to <2 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000213 %r92 = fptoui <2 x float> undef to <2 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000214 ; CHECK: Found an estimated cost of 1 for instruction: %r93 = fptosi <2 x float> undef to <2 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000215 %r93 = fptosi <2 x float> undef to <2 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000216 ; CHECK: Found an estimated cost of 1 for instruction: %r94 = fptoui <2 x float> undef to <2 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000217 %r94 = fptoui <2 x float> undef to <2 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000218 ; CHECK: Found an estimated cost of 1 for instruction: %r95 = fptosi <2 x float> undef to <2 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000219 %r95 = fptosi <2 x float> undef to <2 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000220 ; CHECK: Found an estimated cost of 1 for instruction: %r96 = fptoui <2 x float> undef to <2 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000221 %r96 = fptoui <2 x float> undef to <2 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000222 ; CHECK: Found an estimated cost of 1 for instruction: %r97 = fptosi <2 x float> undef to <2 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000223 %r97 = fptosi <2 x float> undef to <2 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000224 ; CHECK: Found an estimated cost of 32 for instruction: %r98 = fptoui <2 x float> undef to <2 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000225 %r98 = fptoui <2 x float> undef to <2 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000226 ; CHECK: Found an estimated cost of 32 for instruction: %r99 = fptosi <2 x float> undef to <2 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000227 %r99 = fptosi <2 x float> undef to <2 x i64>
228
Silviu Barangad5ac2692015-08-17 15:57:05 +0000229 ; CHECK: Found an estimated cost of 16 for instruction: %r100 = fptoui <2 x double> undef to <2 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000230 %r100 = fptoui <2 x double> undef to <2 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000231 ; CHECK: Found an estimated cost of 16 for instruction: %r101 = fptosi <2 x double> undef to <2 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000232 %r101 = fptosi <2 x double> undef to <2 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000233 ; CHECK: Found an estimated cost of 16 for instruction: %r102 = fptoui <2 x double> undef to <2 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000234 %r102 = fptoui <2 x double> undef to <2 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000235 ; CHECK: Found an estimated cost of 16 for instruction: %r103 = fptosi <2 x double> undef to <2 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000236 %r103 = fptosi <2 x double> undef to <2 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000237 ; CHECK: Found an estimated cost of 16 for instruction: %r104 = fptoui <2 x double> undef to <2 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000238 %r104 = fptoui <2 x double> undef to <2 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000239 ; CHECK: Found an estimated cost of 16 for instruction: %r105 = fptosi <2 x double> undef to <2 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000240 %r105 = fptosi <2 x double> undef to <2 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000241 ; CHECK: Found an estimated cost of 2 for instruction: %r106 = fptoui <2 x double> undef to <2 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000242 %r106 = fptoui <2 x double> undef to <2 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000243 ; CHECK: Found an estimated cost of 2 for instruction: %r107 = fptosi <2 x double> undef to <2 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000244 %r107 = fptosi <2 x double> undef to <2 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000245 ; CHECK: Found an estimated cost of 32 for instruction: %r108 = fptoui <2 x double> undef to <2 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000246 %r108 = fptoui <2 x double> undef to <2 x i64>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000247 ; CHECK: Found an estimated cost of 32 for instruction: %r109 = fptosi <2 x double> undef to <2 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000248 %r109 = fptosi <2 x double> undef to <2 x i64>
249
Silviu Barangad5ac2692015-08-17 15:57:05 +0000250 ; CHECK: Found an estimated cost of 32 for instruction: %r110 = fptoui <4 x float> undef to <4 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000251 %r110 = fptoui <4 x float> undef to <4 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000252 ; CHECK: Found an estimated cost of 32 for instruction: %r111 = fptosi <4 x float> undef to <4 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000253 %r111 = fptosi <4 x float> undef to <4 x i1>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000254 ; CHECK: Found an estimated cost of 3 for instruction: %r112 = fptoui <4 x float> undef to <4 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000255 %r112 = fptoui <4 x float> undef to <4 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000256 ; CHECK: Found an estimated cost of 3 for instruction: %r113 = fptosi <4 x float> undef to <4 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000257 %r113 = fptosi <4 x float> undef to <4 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000258
259 ; CHECK: Found an estimated cost of 2 for instruction: %r114 = fptoui <4 x float> undef to <4 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000260 %r114 = fptoui <4 x float> undef to <4 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000261 ; CHECK: Found an estimated cost of 2 for instruction: %r115 = fptosi <4 x float> undef to <4 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000262 %r115 = fptosi <4 x float> undef to <4 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000263 ; CHECK: Found an estimated cost of 1 for instruction: %r116 = fptoui <4 x float> undef to <4 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000264 %r116 = fptoui <4 x float> undef to <4 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000265 ; CHECK: Found an estimated cost of 1 for instruction: %r117 = fptosi <4 x float> undef to <4 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000266 %r117 = fptosi <4 x float> undef to <4 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000267 ; CHECK: Found an estimated cost of 65 for instruction: %r118 = fptoui <4 x float> undef to <4 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000268 %r118 = fptoui <4 x float> undef to <4 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000269 ; CHECK: Found an estimated cost of 65 for instruction: %r119 = fptosi <4 x float> undef to <4 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000270 %r119 = fptosi <4 x float> undef to <4 x i64>
271
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000272 ; CHECK: Found an estimated cost of 33 for instruction: %r120 = fptoui <4 x double> undef to <4 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000273 %r120 = fptoui <4 x double> undef to <4 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000274 ; CHECK: Found an estimated cost of 33 for instruction: %r121 = fptosi <4 x double> undef to <4 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000275 %r121 = fptosi <4 x double> undef to <4 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000276 ; CHECK: Found an estimated cost of 33 for instruction: %r122 = fptoui <4 x double> undef to <4 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000277 %r122 = fptoui <4 x double> undef to <4 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000278 ; CHECK: Found an estimated cost of 33 for instruction: %r123 = fptosi <4 x double> undef to <4 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000279 %r123 = fptosi <4 x double> undef to <4 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000280 ; CHECK: Found an estimated cost of 33 for instruction: %r124 = fptoui <4 x double> undef to <4 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000281 %r124 = fptoui <4 x double> undef to <4 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000282 ; CHECK: Found an estimated cost of 33 for instruction: %r125 = fptosi <4 x double> undef to <4 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000283 %r125 = fptosi <4 x double> undef to <4 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000284 ; CHECK: Found an estimated cost of 5 for instruction: %r126 = fptoui <4 x double> undef to <4 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000285 %r126 = fptoui <4 x double> undef to <4 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000286 ; CHECK: Found an estimated cost of 5 for instruction: %r127 = fptosi <4 x double> undef to <4 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000287 %r127 = fptosi <4 x double> undef to <4 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000288 ; CHECK: Found an estimated cost of 65 for instruction: %r128 = fptoui <4 x double> undef to <4 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000289 %r128 = fptoui <4 x double> undef to <4 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000290 ; CHECK: Found an estimated cost of 65 for instruction: %r129 = fptosi <4 x double> undef to <4 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000291 %r129 = fptosi <4 x double> undef to <4 x i64>
292
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000293 ; CHECK: Found an estimated cost of 65 for instruction: %r130 = fptoui <8 x float> undef to <8 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000294 %r130 = fptoui <8 x float> undef to <8 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000295 ; CHECK: Found an estimated cost of 65 for instruction: %r131 = fptosi <8 x float> undef to <8 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000296 %r131 = fptosi <8 x float> undef to <8 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000297 ; CHECK: Found an estimated cost of 7 for instruction: %r132 = fptoui <8 x float> undef to <8 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000298 %r132 = fptoui <8 x float> undef to <8 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000299 ; CHECK: Found an estimated cost of 7 for instruction: %r133 = fptosi <8 x float> undef to <8 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000300 %r133 = fptosi <8 x float> undef to <8 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000301 ; CHECK: Found an estimated cost of 4 for instruction: %r134 = fptoui <8 x float> undef to <8 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000302 %r134 = fptoui <8 x float> undef to <8 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000303 ; CHECK: Found an estimated cost of 4 for instruction: %r135 = fptosi <8 x float> undef to <8 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000304 %r135 = fptosi <8 x float> undef to <8 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000305 ; CHECK: Found an estimated cost of 2 for instruction: %r136 = fptoui <8 x float> undef to <8 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000306 %r136 = fptoui <8 x float> undef to <8 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000307 ; CHECK: Found an estimated cost of 2 for instruction: %r137 = fptosi <8 x float> undef to <8 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000308 %r137 = fptosi <8 x float> undef to <8 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000309 ; CHECK: Found an estimated cost of 131 for instruction: %r138 = fptoui <8 x float> undef to <8 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000310 %r138 = fptoui <8 x float> undef to <8 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000311 ; CHECK: Found an estimated cost of 131 for instruction: %r139 = fptosi <8 x float> undef to <8 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000312 %r139 = fptosi <8 x float> undef to <8 x i64>
313
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000314 ; CHECK: Found an estimated cost of 67 for instruction: %r140 = fptoui <8 x double> undef to <8 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000315 %r140 = fptoui <8 x double> undef to <8 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000316 ; CHECK: Found an estimated cost of 67 for instruction: %r141 = fptosi <8 x double> undef to <8 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000317 %r141 = fptosi <8 x double> undef to <8 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000318 ; CHECK: Found an estimated cost of 67 for instruction: %r142 = fptoui <8 x double> undef to <8 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000319 %r142 = fptoui <8 x double> undef to <8 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000320 ; CHECK: Found an estimated cost of 67 for instruction: %r143 = fptosi <8 x double> undef to <8 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000321 %r143 = fptosi <8 x double> undef to <8 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000322 ; CHECK: Found an estimated cost of 67 for instruction: %r144 = fptoui <8 x double> undef to <8 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000323 %r144 = fptoui <8 x double> undef to <8 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000324 ; CHECK: Found an estimated cost of 67 for instruction: %r145 = fptosi <8 x double> undef to <8 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000325 %r145 = fptosi <8 x double> undef to <8 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000326 ; CHECK: Found an estimated cost of 11 for instruction: %r146 = fptoui <8 x double> undef to <8 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000327 %r146 = fptoui <8 x double> undef to <8 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000328 ; CHECK: Found an estimated cost of 11 for instruction: %r147 = fptosi <8 x double> undef to <8 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000329 %r147 = fptosi <8 x double> undef to <8 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000330 ; CHECK: Found an estimated cost of 131 for instruction: %r148 = fptoui <8 x double> undef to <8 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000331 %r148 = fptoui <8 x double> undef to <8 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000332 ; CHECK: Found an estimated cost of 131 for instruction: %r149 = fptosi <8 x double> undef to <8 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000333 %r149 = fptosi <8 x double> undef to <8 x i64>
334
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000335 ; CHECK: Found an estimated cost of 131 for instruction: %r150 = fptoui <16 x float> undef to <16 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000336 %r150 = fptoui <16 x float> undef to <16 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000337 ; CHECK: Found an estimated cost of 131 for instruction: %r151 = fptosi <16 x float> undef to <16 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000338 %r151 = fptosi <16 x float> undef to <16 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000339 ; CHECK: Found an estimated cost of 15 for instruction: %r152 = fptoui <16 x float> undef to <16 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000340 %r152 = fptoui <16 x float> undef to <16 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000341 ; CHECK: Found an estimated cost of 15 for instruction: %r153 = fptosi <16 x float> undef to <16 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000342 %r153 = fptosi <16 x float> undef to <16 x i8>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000343 ; CHECK: Found an estimated cost of 8 for instruction: %r154 = fptoui <16 x float> undef to <16 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000344 %r154 = fptoui <16 x float> undef to <16 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000345 ; CHECK: Found an estimated cost of 8 for instruction: %r155 = fptosi <16 x float> undef to <16 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000346 %r155 = fptosi <16 x float> undef to <16 x i16>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000347 ; CHECK: Found an estimated cost of 4 for instruction: %r156 = fptoui <16 x float> undef to <16 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000348 %r156 = fptoui <16 x float> undef to <16 x i32>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000349 ; CHECK: Found an estimated cost of 4 for instruction: %r157 = fptosi <16 x float> undef to <16 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000350 %r157 = fptosi <16 x float> undef to <16 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000351 ; CHECK: Found an estimated cost of 263 for instruction: %r158 = fptoui <16 x float> undef to <16 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000352 %r158 = fptoui <16 x float> undef to <16 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000353 ; CHECK: Found an estimated cost of 263 for instruction: %r159 = fptosi <16 x float> undef to <16 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000354 %r159 = fptosi <16 x float> undef to <16 x i64>
355
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000356 ; CHECK: Found an estimated cost of 135 for instruction: %r160 = fptoui <16 x double> undef to <16 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000357 %r160 = fptoui <16 x double> undef to <16 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000358 ; CHECK: Found an estimated cost of 135 for instruction: %r161 = fptosi <16 x double> undef to <16 x i1>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000359 %r161 = fptosi <16 x double> undef to <16 x i1>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000360 ; CHECK: Found an estimated cost of 135 for instruction: %r162 = fptoui <16 x double> undef to <16 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000361 %r162 = fptoui <16 x double> undef to <16 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000362 ; CHECK: Found an estimated cost of 135 for instruction: %r163 = fptosi <16 x double> undef to <16 x i8>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000363 %r163 = fptosi <16 x double> undef to <16 x i8>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000364 ; CHECK: Found an estimated cost of 135 for instruction: %r164 = fptoui <16 x double> undef to <16 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000365 %r164 = fptoui <16 x double> undef to <16 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000366 ; CHECK: Found an estimated cost of 135 for instruction: %r165 = fptosi <16 x double> undef to <16 x i16>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000367 %r165 = fptosi <16 x double> undef to <16 x i16>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000368 ; CHECK: Found an estimated cost of 23 for instruction: %r166 = fptoui <16 x double> undef to <16 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000369 %r166 = fptoui <16 x double> undef to <16 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000370 ; CHECK: Found an estimated cost of 23 for instruction: %r167 = fptosi <16 x double> undef to <16 x i32>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000371 %r167 = fptosi <16 x double> undef to <16 x i32>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000372 ; CHECK: Found an estimated cost of 263 for instruction: %r168 = fptoui <16 x double> undef to <16 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000373 %r168 = fptoui <16 x double> undef to <16 x i64>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000374 ; CHECK: Found an estimated cost of 263 for instruction: %r169 = fptosi <16 x double> undef to <16 x i64>
Arnold Schwaighofer6c9c3a82013-03-18 22:47:06 +0000375 %r169 = fptosi <16 x double> undef to <16 x i64>
376
Silviu Barangad5ac2692015-08-17 15:57:05 +0000377 ; CHECK: Found an estimated cost of 12 for instruction: %r170 = uitofp <2 x i1> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000378 %r170 = uitofp <2 x i1> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000379 ; CHECK: Found an estimated cost of 12 for instruction: %r171 = sitofp <2 x i1> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000380 %r171 = sitofp <2 x i1> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000381 ; CHECK: Found an estimated cost of 3 for instruction: %r172 = uitofp <2 x i8> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000382 %r172 = uitofp <2 x i8> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000383 ; CHECK: Found an estimated cost of 3 for instruction: %r173 = sitofp <2 x i8> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000384 %r173 = sitofp <2 x i8> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000385 ; CHECK: Found an estimated cost of 2 for instruction: %r174 = uitofp <2 x i16> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000386 %r174 = uitofp <2 x i16> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000387 ; CHECK: Found an estimated cost of 2 for instruction: %r175 = sitofp <2 x i16> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000388 %r175 = sitofp <2 x i16> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000389 ; CHECK: Found an estimated cost of 1 for instruction: %r176 = uitofp <2 x i32> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000390 %r176 = uitofp <2 x i32> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000391 ; CHECK: Found an estimated cost of 1 for instruction: %r177 = sitofp <2 x i32> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000392 %r177 = sitofp <2 x i32> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000393 ; CHECK: Found an estimated cost of 28 for instruction: %r178 = uitofp <2 x i64> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000394 %r178 = uitofp <2 x i64> undef to <2 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000395 ; CHECK: Found an estimated cost of 28 for instruction: %r179 = sitofp <2 x i64> undef to <2 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000396 %r179 = sitofp <2 x i64> undef to <2 x float>
397
Silviu Barangad5ac2692015-08-17 15:57:05 +0000398 ; CHECK: Found an estimated cost of 8 for instruction: %r180 = uitofp <2 x i1> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000399 %r180 = uitofp <2 x i1> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000400 ; CHECK: Found an estimated cost of 8 for instruction: %r181 = sitofp <2 x i1> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000401 %r181 = sitofp <2 x i1> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000402 ; CHECK: Found an estimated cost of 4 for instruction: %r182 = uitofp <2 x i8> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000403 %r182 = uitofp <2 x i8> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000404 ; CHECK: Found an estimated cost of 4 for instruction: %r183 = sitofp <2 x i8> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000405 %r183 = sitofp <2 x i8> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000406 ; CHECK: Found an estimated cost of 3 for instruction: %r184 = uitofp <2 x i16> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000407 %r184 = uitofp <2 x i16> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000408 ; CHECK: Found an estimated cost of 3 for instruction: %r185 = sitofp <2 x i16> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000409 %r185 = sitofp <2 x i16> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000410 ; CHECK: Found an estimated cost of 2 for instruction: %r186 = uitofp <2 x i32> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000411 %r186 = uitofp <2 x i32> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000412 ; CHECK: Found an estimated cost of 2 for instruction: %r187 = sitofp <2 x i32> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000413 %r187 = sitofp <2 x i32> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000414 ; CHECK: Found an estimated cost of 24 for instruction: %r188 = uitofp <2 x i64> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000415 %r188 = uitofp <2 x i64> undef to <2 x double>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000416 ; CHECK: Found an estimated cost of 24 for instruction: %r189 = sitofp <2 x i64> undef to <2 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000417 %r189 = sitofp <2 x i64> undef to <2 x double>
418
Silviu Barangad5ac2692015-08-17 15:57:05 +0000419 ; CHECK: Found an estimated cost of 3 for instruction: %r190 = uitofp <4 x i1> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000420 %r190 = uitofp <4 x i1> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000421 ; CHECK: Found an estimated cost of 3 for instruction: %r191 = sitofp <4 x i1> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000422 %r191 = sitofp <4 x i1> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000423 ; CHECK: Found an estimated cost of 3 for instruction: %r192 = uitofp <4 x i8> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000424 %r192 = uitofp <4 x i8> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000425 ; CHECK: Found an estimated cost of 3 for instruction: %r193 = sitofp <4 x i8> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000426 %r193 = sitofp <4 x i8> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000427 ; CHECK: Found an estimated cost of 2 for instruction: %r194 = uitofp <4 x i16> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000428 %r194 = uitofp <4 x i16> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000429 ; CHECK: Found an estimated cost of 2 for instruction: %r195 = sitofp <4 x i16> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000430 %r195 = sitofp <4 x i16> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000431 ; CHECK: Found an estimated cost of 1 for instruction: %r196 = uitofp <4 x i32> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000432 %r196 = uitofp <4 x i32> undef to <4 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000433 ; CHECK: Found an estimated cost of 1 for instruction: %r197 = sitofp <4 x i32> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000434 %r197 = sitofp <4 x i32> undef to <4 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000435 ; CHECK: Found an estimated cost of 57 for instruction: %r198 = uitofp <4 x i64> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000436 %r198 = uitofp <4 x i64> undef to <4 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000437 ; CHECK: Found an estimated cost of 57 for instruction: %r199 = sitofp <4 x i64> undef to <4 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000438 %r199 = sitofp <4 x i64> undef to <4 x float>
439
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000440 ; CHECK: Found an estimated cost of 17 for instruction: %r200 = uitofp <4 x i1> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000441 %r200 = uitofp <4 x i1> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000442 ; CHECK: Found an estimated cost of 17 for instruction: %r201 = sitofp <4 x i1> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000443 %r201 = sitofp <4 x i1> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000444 ; CHECK: Found an estimated cost of 9 for instruction: %r202 = uitofp <4 x i8> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000445 %r202 = uitofp <4 x i8> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000446 ; CHECK: Found an estimated cost of 9 for instruction: %r203 = sitofp <4 x i8> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000447 %r203 = sitofp <4 x i8> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000448 ; CHECK: Found an estimated cost of 7 for instruction: %r204 = uitofp <4 x i16> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000449 %r204 = uitofp <4 x i16> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000450 ; CHECK: Found an estimated cost of 7 for instruction: %r205 = sitofp <4 x i16> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000451 %r205 = sitofp <4 x i16> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000452 ; CHECK: Found an estimated cost of 5 for instruction: %r206 = uitofp <4 x i32> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000453 %r206 = uitofp <4 x i32> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000454 ; CHECK: Found an estimated cost of 5 for instruction: %r207 = sitofp <4 x i32> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000455 %r207 = sitofp <4 x i32> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000456 ; CHECK: Found an estimated cost of 49 for instruction: %r208 = uitofp <4 x i64> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000457 %r208 = uitofp <4 x i64> undef to <4 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000458 ; CHECK: Found an estimated cost of 49 for instruction: %r209 = sitofp <4 x i64> undef to <4 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000459 %r209 = sitofp <4 x i64> undef to <4 x double>
460
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000461 ; CHECK: Found an estimated cost of 7 for instruction: %r210 = uitofp <8 x i1> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000462 %r210 = uitofp <8 x i1> undef to <8 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000463 ; CHECK: Found an estimated cost of 7 for instruction: %r211 = sitofp <8 x i1> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000464 %r211 = sitofp <8 x i1> undef to <8 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000465 ; CHECK: Found an estimated cost of 7 for instruction: %r212 = uitofp <8 x i8> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000466 %r212 = uitofp <8 x i8> undef to <8 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000467 ; CHECK: Found an estimated cost of 7 for instruction: %r213 = sitofp <8 x i8> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000468 %r213 = sitofp <8 x i8> undef to <8 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000469 ; CHECK: Found an estimated cost of 4 for instruction: %r214 = uitofp <8 x i16> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000470 %r214 = uitofp <8 x i16> undef to <8 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000471 ; CHECK: Found an estimated cost of 4 for instruction: %r215 = sitofp <8 x i16> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000472 %r215 = sitofp <8 x i16> undef to <8 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000473 ; CHECK: Found an estimated cost of 2 for instruction: %r216 = uitofp <8 x i32> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000474 %r216 = uitofp <8 x i32> undef to <8 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000475 ; CHECK: Found an estimated cost of 2 for instruction: %r217 = sitofp <8 x i32> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000476 %r217 = sitofp <8 x i32> undef to <8 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000477 ; CHECK: Found an estimated cost of 115 for instruction: %r218 = uitofp <8 x i64> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000478 %r218 = uitofp <8 x i64> undef to <8 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000479 ; CHECK: Found an estimated cost of 115 for instruction: %r219 = sitofp <8 x i64> undef to <8 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000480 %r219 = sitofp <8 x i64> undef to <8 x float>
481
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000482 ; CHECK: Found an estimated cost of 35 for instruction: %r220 = uitofp <8 x i1> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000483 %r220 = uitofp <8 x i1> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000484 ; CHECK: Found an estimated cost of 35 for instruction: %r221 = sitofp <8 x i1> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000485 %r221 = sitofp <8 x i1> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000486 ; CHECK: Found an estimated cost of 19 for instruction: %r222 = uitofp <8 x i8> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000487 %r222 = uitofp <8 x i8> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000488 ; CHECK: Found an estimated cost of 19 for instruction: %r223 = sitofp <8 x i8> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000489 %r223 = sitofp <8 x i8> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000490 ; CHECK: Found an estimated cost of 15 for instruction: %r224 = uitofp <8 x i16> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000491 %r224 = uitofp <8 x i16> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000492 ; CHECK: Found an estimated cost of 15 for instruction: %r225 = sitofp <8 x i16> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000493 %r225 = sitofp <8 x i16> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000494 ; CHECK: Found an estimated cost of 15 for instruction: %r226 = uitofp <8 x i16> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000495 %r226 = uitofp <8 x i16> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000496 ; CHECK: Found an estimated cost of 15 for instruction: %r227 = sitofp <8 x i16> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000497 %r227 = sitofp <8 x i16> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000498 ; CHECK: Found an estimated cost of 99 for instruction: %r228 = uitofp <8 x i64> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000499 %r228 = uitofp <8 x i64> undef to <8 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000500 ; CHECK: Found an estimated cost of 99 for instruction: %r229 = sitofp <8 x i64> undef to <8 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000501 %r229 = sitofp <8 x i64> undef to <8 x double>
502
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000503 ; CHECK: Found an estimated cost of 15 for instruction: %r230 = uitofp <16 x i1> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000504 %r230 = uitofp <16 x i1> undef to <16 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000505 ; CHECK: Found an estimated cost of 15 for instruction: %r231 = sitofp <16 x i1> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000506 %r231 = sitofp <16 x i1> undef to <16 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000507 ; CHECK: Found an estimated cost of 15 for instruction: %r232 = uitofp <16 x i8> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000508 %r232 = uitofp <16 x i8> undef to <16 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000509 ; CHECK: Found an estimated cost of 15 for instruction: %r233 = sitofp <16 x i8> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000510 %r233 = sitofp <16 x i8> undef to <16 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000511 ; CHECK: Found an estimated cost of 8 for instruction: %r234 = uitofp <16 x i16> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000512 %r234 = uitofp <16 x i16> undef to <16 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000513 ; CHECK: Found an estimated cost of 8 for instruction: %r235 = sitofp <16 x i16> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000514 %r235 = sitofp <16 x i16> undef to <16 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000515 ; CHECK: Found an estimated cost of 4 for instruction: %r236 = uitofp <16 x i32> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000516 %r236 = uitofp <16 x i32> undef to <16 x float>
Silviu Barangad5ac2692015-08-17 15:57:05 +0000517 ; CHECK: Found an estimated cost of 4 for instruction: %r237 = sitofp <16 x i32> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000518 %r237 = sitofp <16 x i32> undef to <16 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000519 ; CHECK: Found an estimated cost of 231 for instruction: %r238 = uitofp <16 x i64> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000520 %r238 = uitofp <16 x i64> undef to <16 x float>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000521 ; CHECK: Found an estimated cost of 231 for instruction: %r239 = sitofp <16 x i64> undef to <16 x float>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000522 %r239 = sitofp <16 x i64> undef to <16 x float>
523
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000524 ; CHECK: Found an estimated cost of 71 for instruction: %r240 = uitofp <16 x i1> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000525 %r240 = uitofp <16 x i1> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000526 ; CHECK: Found an estimated cost of 71 for instruction: %r241 = sitofp <16 x i1> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000527 %r241 = sitofp <16 x i1> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000528 ; CHECK: Found an estimated cost of 39 for instruction: %r242 = uitofp <16 x i8> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000529 %r242 = uitofp <16 x i8> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000530 ; CHECK: Found an estimated cost of 39 for instruction: %r243 = sitofp <16 x i8> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000531 %r243 = sitofp <16 x i8> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000532 ; CHECK: Found an estimated cost of 31 for instruction: %r244 = uitofp <16 x i16> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000533 %r244 = uitofp <16 x i16> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000534 ; CHECK: Found an estimated cost of 31 for instruction: %r245 = sitofp <16 x i16> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000535 %r245 = sitofp <16 x i16> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000536 ; CHECK: Found an estimated cost of 31 for instruction: %r246 = uitofp <16 x i16> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000537 %r246 = uitofp <16 x i16> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000538 ; CHECK: Found an estimated cost of 31 for instruction: %r247 = sitofp <16 x i16> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000539 %r247 = sitofp <16 x i16> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000540 ; CHECK: Found an estimated cost of 199 for instruction: %r248 = uitofp <16 x i64> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000541 %r248 = uitofp <16 x i64> undef to <16 x double>
Michael Kupersteinaa71bdd2016-07-06 17:30:56 +0000542 ; CHECK: Found an estimated cost of 199 for instruction: %r249 = sitofp <16 x i64> undef to <16 x double>
Arnold Schwaighoferae0052f2013-03-18 22:47:09 +0000543 %r249 = sitofp <16 x i64> undef to <16 x double>
544
Silviu Barangad5ac2692015-08-17 15:57:05 +0000545 ; CHECK: Found an estimated cost of 0 for instruction: ret i32 undef
Arnold Schwaighofera804bbe2013-02-05 14:05:55 +0000546 ret i32 undef
547}
548