|
2 | 2 | //! This module exists because some integer types are not supported on some gcc platforms, e.g. |
3 | 3 | //! 128-bit integers on 32-bit platforms and thus require to be handled manually. |
4 | 4 |
|
| 5 | +// cSpell:words cmpti divti modti mulodi muloti udivti umodti |
| 6 | + |
5 | 7 | use gccjit::{BinaryOp, ComparisonOp, FunctionType, Location, RValue, ToRValue, Type, UnaryOp}; |
6 | 8 | use rustc_abi::{Endian, ExternAbi}; |
7 | 9 | use rustc_codegen_ssa::common::{IntPredicate, TypeKind}; |
@@ -913,9 +915,11 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> { |
913 | 915 |
|
914 | 916 | debug_assert!(value_type.dyncast_array().is_some()); |
915 | 917 | let name_suffix = match self.type_kind(dest_typ) { |
| 918 | + // cSpell:disable |
916 | 919 | TypeKind::Float => "tisf", |
917 | 920 | TypeKind::Double => "tidf", |
918 | 921 | TypeKind::FP128 => "titf", |
| 922 | + // cSpell:enable |
919 | 923 | kind => panic!("cannot cast a non-native integer to type {:?}", kind), |
920 | 924 | }; |
921 | 925 | let sign = if signed { "" } else { "un" }; |
@@ -957,8 +961,10 @@ impl<'gcc, 'tcx> CodegenCx<'gcc, 'tcx> { |
957 | 961 |
|
958 | 962 | debug_assert!(dest_typ.dyncast_array().is_some()); |
959 | 963 | let name_suffix = match self.type_kind(value_type) { |
| 964 | + // cSpell:disable |
960 | 965 | TypeKind::Float => "sfti", |
961 | 966 | TypeKind::Double => "dfti", |
| 967 | + // cSpell:enable |
962 | 968 | kind => panic!("cannot cast a {:?} to non-native integer", kind), |
963 | 969 | }; |
964 | 970 | let sign = if signed { "" } else { "uns" }; |
|
0 commit comments