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

instcombine miscompiles fp X == X #1483

Closed
lattner opened this issue Jan 14, 2007 · 2 comments
Closed

instcombine miscompiles fp X == X #1483

lattner opened this issue Jan 14, 2007 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla miscompilation

Comments

@lattner
Copy link
Collaborator

lattner commented Jan 14, 2007

Bugzilla Link 1111
Resolution FIXED
Resolved on Feb 22, 2010 12:45
Version 1.0
OS All

Extended Description

instcombine isn't handling nan's right when folding fcmp X, X. For example, it turns this into false:

define i1 %test(double %X) {
%tmp = fcmp une double %X, %X ; [#uses=1]
ret i1 %tmp
}

-Chris

@lattner
Copy link
Collaborator Author

lattner commented Jan 14, 2007

assigned to @lattner

@lattner
Copy link
Collaborator Author

lattner commented Jan 14, 2007

Fixed, testcase here: Transforms/InstCombine/2007-01-14-FcmpSelf.ll

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

-Chris

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 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 miscompilation
Projects
None yet
Development

No branches or pull requests

1 participant