3 Commits

Author SHA1 Message Date
Simon Pilgrim
ad3a7654dc [X86] combineCMP - peek through zero-extensions for X86cmp(zext(x0),0) zero tests (PR38960)
If we're comparing a value against zero, strip away any zero-extension and perform the comparison on the pre-extended value

Fixes #38308

Differential Revision: https://reviews.llvm.org/D121472
2022-03-13 11:38:40 +00:00
Simon Pilgrim
1a4148666a [X86] Add PR38960 comineqss test case
This inverts the flags result compared to the original PR38960 comieqss test case
2022-03-11 16:46:47 +00:00
Simon Pilgrim
db522568d5 [X86] Add (u)comiss/sd tests showing eflags handling (PR38960) 2022-03-10 20:59:52 +00:00