[llvm-bugs] [Bug 27472] New: llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp:370:Mismatching assignment and comparison

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 22 01:48:21 PDT 2016


            Bug ID: 27472
           Summary: llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp:370:Mis
                    matching assignment and comparison
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

[trunk/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp:370] ->
[trunk/llvm/lib/Target/X86/Utils/X86ShuffleDecode.cpp:371]: (style) Mismatching
assignment and comparison, comparison 'PermuteOp==4' is always false.

Source code is

    uint64_t PermuteOp = (M >> 5) & 0x3;
    if (PermuteOp == 4) {

If something is masked with 0x3, then it can never be equal to 4.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160422/ea306f07/attachment.html>

More information about the llvm-bugs mailing list