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

C backend assertion: (castIsValid(getOpcode(), S, Ty) && "Illegal Trunc") #1553

Closed
llvmbot opened this issue Feb 5, 2007 · 3 comments
Closed
Assignees
Labels
bugzilla Issues migrated from bugzilla compile-fail Use [accepts-invalid] and [rejects-valid] instead

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Feb 5, 2007

Bugzilla Link 1181
Resolution FIXED
Resolved on Feb 22, 2010 12:44
Version trunk
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

llc -march=c triggers this assertion. Test case is:

target datalayout = "e-p:64:64"
target triple = "x86_64-apple-darwin8"

implementation ; Functions:

declare void @​llvm.memset.i64(i8*, i8, i64, i32)

define fastcc void @​InitUser_data_unregistered() {
entry:
tail call void @​llvm.memset.i64( i8* null, i8 0, i64 65496, i32 1 )
ret void
}

@llvmbot
Copy link
Collaborator Author

llvmbot commented Feb 5, 2007

assigned to @lattner

@lattner
Copy link
Collaborator

lattner commented Feb 6, 2007

Fixed, testcase here: CodeGen/CBackend/2007-02-05-memset.ll

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070205/044016.html

-Chris

@asl
Copy link
Collaborator

asl commented Feb 6, 2007

Does this fix ldecod?

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
troelsbjerre pushed a commit to troelsbjerre/llvm-project that referenced this issue Jan 10, 2024
🇫🇷 Bastille branch 🇫🇷 [darwin] build and link with a separate compiler-rt builtins library for device simulators
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 compile-fail Use [accepts-invalid] and [rejects-valid] instead
Projects
None yet
Development

No branches or pull requests

3 participants