@@ -125,47 +125,32 @@ impl<'gcc, 'tcx> BaseTypeMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
125
125
self . isize_type
126
126
}
127
127
128
- #[ cfg( feature = "master" ) ]
129
128
fn type_f16 ( & self ) -> Type < ' gcc > {
129
+ #[ cfg( feature = "master" ) ]
130
130
if self . supports_f16_type {
131
131
return self . context . new_c_type ( CType :: Float16 ) ;
132
132
}
133
- unimplemented ! ( "f16" )
134
- }
135
-
136
- #[ cfg( not( feature = "master" ) ) ]
137
- fn type_f16 ( & self ) -> Type < ' gcc > {
138
- unimplemented ! ( "f16" )
133
+ bug ! ( "unsupported float width 16" )
139
134
}
140
135
141
- #[ cfg( feature = "master" ) ]
142
136
fn type_f32 ( & self ) -> Type < ' gcc > {
137
+ #[ cfg( feature = "master" ) ]
143
138
if self . supports_f32_type {
144
139
return self . context . new_c_type ( CType :: Float32 ) ;
145
140
}
146
141
self . float_type
147
142
}
148
143
149
- #[ cfg( not( feature = "master" ) ) ]
150
- fn type_f32 ( & self ) -> Type < ' gcc > {
151
- self . float_type
152
- }
153
-
154
144
fn type_f64 ( & self ) -> Type < ' gcc > {
155
145
self . double_type
156
146
}
157
147
158
- #[ cfg( feature = "master" ) ]
159
148
fn type_f128 ( & self ) -> Type < ' gcc > {
149
+ #[ cfg( feature = "master" ) ]
160
150
if self . supports_f128_type {
161
151
return self . context . new_c_type ( CType :: Float128 ) ;
162
152
}
163
- unimplemented ! ( "f128" )
164
- }
165
-
166
- #[ cfg( not( feature = "master" ) ) ]
167
- fn type_f128 ( & self ) -> Type < ' gcc > {
168
- unimplemented ! ( "f128" )
153
+ bug ! ( "unsupported float width 128" )
169
154
}
170
155
171
156
fn type_func ( & self , params : & [ Type < ' gcc > ] , return_type : Type < ' gcc > ) -> Type < ' gcc > {
0 commit comments