Skip to content

ICE - tried to get overflow intrinsic for non-int type #23037

Closed
@Jojoshua

Description

@Jojoshua

thread 'rustc' panicked at 'tried to get overflow intrinsic for non-int type', C
:\bot\slave\nightly-dist-rustc-win-64\build\src\librustc_trans\trans\expr.rs:235
2

Here is the code

#![feature(core)]

use std::simd::i16x8;

fn main() {
    // create simd vectors
    let x = i16x8(1, 2, 3, 4,1, 2, 3, 4);
    let y = i16x8(4, 3, 2, 1,1, 2, 3, 4);

    // simd product
    let z = x * y;

    // like any struct, the simd vector can be destructured using `let`
    let i16x8(a, b, c, d,e,f,g,h) = z;

    println!("{:?}", (a, b, c, d,e,f,g,h));
}

Metadata

Metadata

Assignees

Labels

I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions