Skip to content

LLVM_ERROR: access past stack top #102667

Open
@matthiaskrgr

Description

@matthiaskrgr

While playing around with #102664 I noticed a different llvm error:

Code

fn main() {
  let x = 1 as f64 / u128::MAX as f64;
  dbg!(x);
}

compiled with -C opt-level=3 -C target-feature=-sse2 -C lto=fat will cause an llvm error:
LLVM ERROR: Access past stack top!

Meta

rustc --version --verbose:

rustc 1.66.0-nightly (f83e0266c 2022-10-03)
binary: rustc
commit-hash: f83e0266cf7aaa4b41505c49a5fd9c2363166522
commit-date: 2022-10-03
host: x86_64-unknown-linux-gnu
release: 1.66.0-nightly
LLVM version: 15.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-target-featureArea: Enabling/disabling target features like AVX, Neon, etc.C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions