Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed: ((PartVT.isInteger() || PartVT == MVT::x86mmx) && ValueVT.isInteger() && "Unknown mismatch!"), function getCopyToParts #23603

Closed
DimitryAndric opened this issue Apr 14, 2015 · 2 comments
Labels
bugzilla Issues migrated from bugzilla duplicate Resolved as duplicate

Comments

@DimitryAndric
Copy link
Collaborator

Bugzilla Link 23229
Resolution DUPLICATE
Resolved on Aug 17, 2015 08:26
Version trunk
OS All
CC @emaste

Extended Description

As reported in https://bugs.freebsd.org/199450, clang crashes with the following assertion failure in SpiderMonkey's FoldConstants.cpp file, when compiled for the armv6--freebsd11.0-gnueabihf target:

Assertion failed: ((PartVT.isInteger() || PartVT == MVT::x86mmx) && ValueVT.isInteger() && "Unknown mismatch!"), function getCopyToParts, file /share/dim/src/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp, line 399.

This also reproduces with clang trunk r234702.

Reduced test case is:

======================================================================
a, b, c, d;
double e;
fn1() { asm("" : "=r"(a), "=&r"(b), "=&r"(c), "=&r"(d), "=&r"(e) : "4"(e)); }

Compile with:

clang -cc1 -triple armv6 -emit-obj -target-cpu arm1176jzf-s testcase.c

Note: the target-cpu setting is essential to trigger this assert.

@DimitryAndric
Copy link
Collaborator Author

Mark this as a dupe of 23244, which has a nicer description.

*** This bug has been marked as a duplicate of bug llvm/llvm-bugzilla-archive#23244 ***

@DimitryAndric
Copy link
Collaborator Author

mentioned in issue llvm/llvm-bugzilla-archive#23244

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 9, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

1 participant