https://llvm.org/bugs/show_bug.cgi?id=27472

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to