test104

Undocumented in source.
immutable
auto test104 = q{--- test104 // cast int to int i16 fold__i8_to_i16_sext() { return cast(i16)cast( i8)-1; } // sext i8 -> i16 i32 fold__i8_to_i32_sext() { return cast(i32)cast( i8)-1; } // sext i8 -> i32 i32 fold_i16_to_i32_sext() { return cast(i32)cast(i16)-1; } // sext i16 -> i32 i64 fold__i8_to_i64_sext() { return cast(i64)cast( i8)-1; } // sext i8 -> i64 i64 fold_i16_to_i64_sext() { return cast(i64)cast(i16)-1; } // sext i16 -> i64 i64 fold_i32_to_i64_sext() { return cast(i64)cast(i32)-1; } // sext i32 -> i64 i16 fold__u8_to_i16_zext() { return cast(i16)cast( u8)u8.max; } // zext u8 -> i16 i32 fold__u8_to_i32_zext() { return cast(i32)cast( u8)u8.max; } // zext u8 -> i32 i32 fold_u16_to_i32_zext() { return cast(i32)cast(u16)u16.max; } // zext u16 -> i32 i64 fold__u8_to_i64_zext() { return cast(i64)cast( u8)u8.max; } // zext u8 -> i64 i64 fold_u16_to_i64_zext() { return cast(i64)cast(u16)u16.max; } // zext u16 -> i64 i64 fold_u32_to_i64_zext() { return cast(i64)cast(u32)u32.max; } // zext u32 -> i64 u16 fold__u8_to_u16_zext() { return cast(u16)cast( u8)u8.max; } // zext u8 -> u16 u32 fold__u8_to_u32_zext() { return cast(u32)cast( u8)u8.max; } // zext u8 -> u32 u32 fold_u16_to_u32_zext() { return cast(u32)cast(u16)u16.max; } // zext u16 -> u32 u64 fold__u8_to_u64_zext() { return cast(u64)cast( u8)u8.max; } // zext u8 -> u64 u64 fold_u16_to_u64_zext() { return cast(u64)cast(u16)u16.max; } // zext u16 -> u64 u64 fold_u32_to_u64_zext() { return cast(u64)cast(u32)u32.max; } // zext u32 -> u64 u16 fold__i8_to_u16_zext() { return cast(u16)i8.min; } // zext i8 -> u16 TODO: these should error without cast u32 fold__i8_to_u32_zext() { return cast(u32)i8.min; } // zext i8 -> u32 TODO: these should error without cast u32 fold_i16_to_u32_zext() { return cast(u32)i16.min; } // zext i16 -> u32 TODO: these should error without cast u64 fold__i8_to_u64_zext() { return cast(u64)i8.min; } // zext i8 -> u64 TODO: these should error without cast u64 fold_i16_to_u64_zext() { return cast(u64)i16.min; } // zext i16 -> u64 TODO: these should error without cast u64 fold_i32_to_u64_zext() { return cast(u64)i32.min; } // zext i32 -> u64 TODO: these should error without cast i16 func__i8_to_i16( i8 a) { return a; } // sext i8 -> i16 i32 func__i8_to_i32( i8 a) { return a; } // sext i8 -> i32 i32 func_i16_to_i32(i16 a) { return a; } // sext i16 -> i32 i64 func__i8_to_i64( i8 a) { return a; } // sext i8 -> i64 i64 func_i16_to_i64(i16 a) { return a; } // sext i16 -> i64 i64 func_i32_to_i64(i32 a) { return a; } // sext i32 -> i64 i16 func__u8_to_i16( u8 a) { return a; } // zext u8 -> i16 i32 func__u8_to_i32( u8 a) { return a; } // zext u8 -> i32 i32 func_u16_to_i32(u16 a) { return a; } // zext u16 -> i32 i64 func__u8_to_i64( u8 a) { return a; } // zext u8 -> i64 i64 func_u16_to_i64(u16 a) { return a; } // zext u16 -> i64 i64 func_u32_to_i64(u32 a) { return a; } // zext u32 -> i64 u16 func__u8_to_u16( u8 a) { return a; } // zext u8 -> u16 u32 func__u8_to_u32( u8 a) { return a; } // zext u8 -> u32 u32 func_u16_to_u32(u16 a) { return a; } // zext u16 -> u32 u64 func__u8_to_u64( u8 a) { return a; } // zext u8 -> u64 u64 func_u16_to_u64(u16 a) { return a; } // zext u16 -> u64 u64 func_u32_to_u64(u32 a) { return a; } // zext u32 -> u64 u16 func__i8_to_u16( i8 a) { return cast(u16)a; } // zext i8 -> u16 TODO: these should error without cast u32 func__i8_to_u32( i8 a) { return cast(u32)a; } // zext i8 -> u32 TODO: these should error without cast u32 func_i16_to_u32(i16 a) { return cast(u32)a; } // zext i16 -> u32 TODO: these should error without cast u64 func__i8_to_u64( i8 a) { return cast(u64)a; } // zext i8 -> u64 TODO: these should error without cast u64 func_i16_to_u64(i16 a) { return cast(u64)a; } // zext i16 -> u64 TODO: these should error without cast u64 func_i32_to_u64(i32 a) { return cast(u64)a; } // zext i32 -> u64 TODO: these should error without cast };

Meta