@@ -904,8 +904,8 @@ fn llvm_asm_scalar_type<'ll>(cx: &CodegenCx<'ll, '_>, scalar: Scalar) -> &'ll Ty
904904 Primitive :: Int ( Integer :: I16 , _) => cx. type_i16 ( ) ,
905905 Primitive :: Int ( Integer :: I32 , _) => cx. type_i32 ( ) ,
906906 Primitive :: Int ( Integer :: I64 , _) => cx. type_i64 ( ) ,
907- Primitive :: F32 => cx. type_f32 ( ) ,
908- Primitive :: F64 => cx. type_f64 ( ) ,
907+ Primitive :: Float ( Float :: F32 ) => cx. type_f32 ( ) ,
908+ Primitive :: Float ( Float :: F64 ) => cx. type_f64 ( ) ,
909909 // FIXME(erikdesjardins): handle non-default addrspace ptr sizes
910910 Primitive :: Pointer ( _) => cx. type_from_integer ( dl. ptr_sized_integer ( ) ) ,
911911 _ => unreachable ! ( ) ,
@@ -950,7 +950,7 @@ fn llvm_fixup_input<'ll, 'tcx>(
950950 bx. shuffle_vector ( value, bx. const_undef ( vec_ty) , bx. const_vector ( & indices) )
951951 }
952952 ( InlineAsmRegClass :: X86 ( X86InlineAsmRegClass :: reg_abcd) , Abi :: Scalar ( s) )
953- if s. primitive ( ) == Primitive :: F64 =>
953+ if s. primitive ( ) == Primitive :: Float ( Float :: F64 ) =>
954954 {
955955 bx. bitcast ( value, bx. cx . type_i64 ( ) )
956956 }
@@ -986,8 +986,8 @@ fn llvm_fixup_input<'ll, 'tcx>(
986986 match s. primitive ( ) {
987987 // MIPS only supports register-length arithmetics.
988988 Primitive :: Int ( Integer :: I8 | Integer :: I16 , _) => bx. zext ( value, bx. cx . type_i32 ( ) ) ,
989- Primitive :: F32 => bx. bitcast ( value, bx. cx . type_i32 ( ) ) ,
990- Primitive :: F64 => bx. bitcast ( value, bx. cx . type_i64 ( ) ) ,
989+ Primitive :: Float ( Float :: F32 ) => bx. bitcast ( value, bx. cx . type_i32 ( ) ) ,
990+ Primitive :: Float ( Float :: F64 ) => bx. bitcast ( value, bx. cx . type_i64 ( ) ) ,
991991 _ => value,
992992 }
993993 }
@@ -1027,7 +1027,7 @@ fn llvm_fixup_output<'ll, 'tcx>(
10271027 bx. shuffle_vector ( value, bx. const_undef ( vec_ty) , bx. const_vector ( & indices) )
10281028 }
10291029 ( InlineAsmRegClass :: X86 ( X86InlineAsmRegClass :: reg_abcd) , Abi :: Scalar ( s) )
1030- if s. primitive ( ) == Primitive :: F64 =>
1030+ if s. primitive ( ) == Primitive :: Float ( Float :: F64 ) =>
10311031 {
10321032 bx. bitcast ( value, bx. cx . type_f64 ( ) )
10331033 }
@@ -1064,8 +1064,8 @@ fn llvm_fixup_output<'ll, 'tcx>(
10641064 // MIPS only supports register-length arithmetics.
10651065 Primitive :: Int ( Integer :: I8 , _) => bx. trunc ( value, bx. cx . type_i8 ( ) ) ,
10661066 Primitive :: Int ( Integer :: I16 , _) => bx. trunc ( value, bx. cx . type_i16 ( ) ) ,
1067- Primitive :: F32 => bx. bitcast ( value, bx. cx . type_f32 ( ) ) ,
1068- Primitive :: F64 => bx. bitcast ( value, bx. cx . type_f64 ( ) ) ,
1067+ Primitive :: Float ( Float :: F32 ) => bx. bitcast ( value, bx. cx . type_f32 ( ) ) ,
1068+ Primitive :: Float ( Float :: F64 ) => bx. bitcast ( value, bx. cx . type_f64 ( ) ) ,
10691069 _ => value,
10701070 }
10711071 }
@@ -1100,7 +1100,7 @@ fn llvm_fixup_output_type<'ll, 'tcx>(
11001100 cx. type_vector ( elem_ty, count * 2 )
11011101 }
11021102 ( InlineAsmRegClass :: X86 ( X86InlineAsmRegClass :: reg_abcd) , Abi :: Scalar ( s) )
1103- if s. primitive ( ) == Primitive :: F64 =>
1103+ if s. primitive ( ) == Primitive :: Float ( Float :: F64 ) =>
11041104 {
11051105 cx. type_i64 ( )
11061106 }
@@ -1136,8 +1136,8 @@ fn llvm_fixup_output_type<'ll, 'tcx>(
11361136 match s. primitive ( ) {
11371137 // MIPS only supports register-length arithmetics.
11381138 Primitive :: Int ( Integer :: I8 | Integer :: I16 , _) => cx. type_i32 ( ) ,
1139- Primitive :: F32 => cx. type_i32 ( ) ,
1140- Primitive :: F64 => cx. type_i64 ( ) ,
1139+ Primitive :: Float ( Float :: F32 ) => cx. type_i32 ( ) ,
1140+ Primitive :: Float ( Float :: F64 ) => cx. type_i64 ( ) ,
11411141 _ => layout. llvm_type ( cx) ,
11421142 }
11431143 }
0 commit comments