diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrSSE.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86InstrSSE.td b/llvm/lib/Target/X86/X86InstrSSE.td index 189fb46612e..30fca8ea1af 100644 --- a/llvm/lib/Target/X86/X86InstrSSE.td +++ b/llvm/lib/Target/X86/X86InstrSSE.td @@ -2398,8 +2398,8 @@ let Constraints = "$src1 = $dst" in { } def CommutableCMPCC : PatLeaf<(imm), [{ - return (N->getZExtValue() == 0x00 || N->getZExtValue() == 0x03 || - N->getZExtValue() == 0x04 || N->getZExtValue() == 0x07); + uint64_t Imm = N->getZExtValue() & 0x7; + return (Imm == 0x00 || Imm == 0x03 || Imm == 0x04 || Imm == 0x07); }]>; // Patterns to select compares with loads in first operand. |

