@@ -174,13 +174,13 @@ def_instruction! {
174
174
/// This may be a noop for some implementations, but it's here in case the
175
175
/// native language representation of `f32` is different than the wasm
176
176
/// representation of `f32`.
177
- F32FromFloat32 : [ 1 ] => [ 1 ] ,
177
+ CoreF32FromF32 : [ 1 ] => [ 1 ] ,
178
178
/// Conversion an interface type `f64` value to a wasm `f64`.
179
179
///
180
180
/// This may be a noop for some implementations, but it's here in case the
181
181
/// native language representation of `f64` is different than the wasm
182
182
/// representation of `f64`.
183
- F64FromFloat64 : [ 1 ] => [ 1 ] ,
183
+ CoreF64FromF64 : [ 1 ] => [ 1 ] ,
184
184
185
185
/// Converts a native wasm `i32` to an interface type `s8`.
186
186
///
@@ -211,9 +211,9 @@ def_instruction! {
211
211
/// It's safe to assume that the `i32` is indeed a valid unicode code point.
212
212
CharFromI32 : [ 1 ] => [ 1 ] ,
213
213
/// Converts a native wasm `f32` to an interface type `f32`.
214
- Float32FromF32 : [ 1 ] => [ 1 ] ,
214
+ F32FromCoreF32 : [ 1 ] => [ 1 ] ,
215
215
/// Converts a native wasm `f64` to an interface type `f64`.
216
- Float64FromF64 : [ 1 ] => [ 1 ] ,
216
+ F64FromCoreF64 : [ 1 ] => [ 1 ] ,
217
217
218
218
/// Creates a `bool` from an `i32` input, trapping if the `i32` isn't
219
219
/// zero or one.
@@ -747,8 +747,8 @@ fn needs_post_return(resolve: &Resolve, ty: &Type) -> bool {
747
747
| Type :: S32
748
748
| Type :: U64
749
749
| Type :: S64
750
- | Type :: Float32
751
- | Type :: Float64
750
+ | Type :: F32
751
+ | Type :: F64
752
752
| Type :: Char => false ,
753
753
}
754
754
}
@@ -1067,8 +1067,8 @@ impl<'a, B: Bindgen> Generator<'a, B> {
1067
1067
Type :: S64 => self . emit ( & I64FromS64 ) ,
1068
1068
Type :: U64 => self . emit ( & I64FromU64 ) ,
1069
1069
Type :: Char => self . emit ( & I32FromChar ) ,
1070
- Type :: Float32 => self . emit ( & F32FromFloat32 ) ,
1071
- Type :: Float64 => self . emit ( & F64FromFloat64 ) ,
1070
+ Type :: F32 => self . emit ( & CoreF32FromF32 ) ,
1071
+ Type :: F64 => self . emit ( & CoreF64FromF64 ) ,
1072
1072
Type :: String => {
1073
1073
let realloc = self . list_realloc ( ) ;
1074
1074
self . emit ( & StringLower { realloc } ) ;
@@ -1256,8 +1256,8 @@ impl<'a, B: Bindgen> Generator<'a, B> {
1256
1256
Type :: S64 => self . emit ( & S64FromI64 ) ,
1257
1257
Type :: U64 => self . emit ( & U64FromI64 ) ,
1258
1258
Type :: Char => self . emit ( & CharFromI32 ) ,
1259
- Type :: Float32 => self . emit ( & Float32FromF32 ) ,
1260
- Type :: Float64 => self . emit ( & Float64FromF64 ) ,
1259
+ Type :: F32 => self . emit ( & F32FromCoreF32 ) ,
1260
+ Type :: F64 => self . emit ( & F64FromCoreF64 ) ,
1261
1261
Type :: String => self . emit ( & StringLift ) ,
1262
1262
Type :: Id ( id) => match & self . resolve . types [ id] . kind {
1263
1263
TypeDefKind :: Type ( t) => self . lift ( t) ,
@@ -1414,8 +1414,8 @@ impl<'a, B: Bindgen> Generator<'a, B> {
1414
1414
self . lower_and_emit ( ty, addr, & I32Store { offset } )
1415
1415
}
1416
1416
Type :: U64 | Type :: S64 => self . lower_and_emit ( ty, addr, & I64Store { offset } ) ,
1417
- Type :: Float32 => self . lower_and_emit ( ty, addr, & F32Store { offset } ) ,
1418
- Type :: Float64 => self . lower_and_emit ( ty, addr, & F64Store { offset } ) ,
1417
+ Type :: F32 => self . lower_and_emit ( ty, addr, & F32Store { offset } ) ,
1418
+ Type :: F64 => self . lower_and_emit ( ty, addr, & F64Store { offset } ) ,
1419
1419
Type :: String => self . write_list_to_memory ( ty, addr, offset) ,
1420
1420
1421
1421
Type :: Id ( id) => match & self . resolve . types [ id] . kind {
@@ -1602,8 +1602,8 @@ impl<'a, B: Bindgen> Generator<'a, B> {
1602
1602
Type :: S16 => self . emit_and_lift ( ty, addr, & I32Load16S { offset } ) ,
1603
1603
Type :: U32 | Type :: S32 | Type :: Char => self . emit_and_lift ( ty, addr, & I32Load { offset } ) ,
1604
1604
Type :: U64 | Type :: S64 => self . emit_and_lift ( ty, addr, & I64Load { offset } ) ,
1605
- Type :: Float32 => self . emit_and_lift ( ty, addr, & F32Load { offset } ) ,
1606
- Type :: Float64 => self . emit_and_lift ( ty, addr, & F64Load { offset } ) ,
1605
+ Type :: F32 => self . emit_and_lift ( ty, addr, & F32Load { offset } ) ,
1606
+ Type :: F64 => self . emit_and_lift ( ty, addr, & F64Load { offset } ) ,
1607
1607
Type :: String => self . read_list_from_memory ( ty, addr, offset) ,
1608
1608
1609
1609
Type :: Id ( id) => match & self . resolve . types [ id] . kind {
@@ -1799,8 +1799,8 @@ impl<'a, B: Bindgen> Generator<'a, B> {
1799
1799
| Type :: Char
1800
1800
| Type :: U64
1801
1801
| Type :: S64
1802
- | Type :: Float32
1803
- | Type :: Float64 => { }
1802
+ | Type :: F32
1803
+ | Type :: F64 => { }
1804
1804
1805
1805
Type :: Id ( id) => match & self . resolve . types [ id] . kind {
1806
1806
TypeDefKind :: Type ( t) => self . deallocate ( t, addr, offset) ,
0 commit comments