<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [x86, SSE] no optimization for move mask instructions"
   href="https://llvm.org/bugs/show_bug.cgi?id=27982">27982</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[x86, SSE] no optimization for move mask instructions
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Similar to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [x86, SSE] failed to eliminate unused instruction"
   href="show_bug.cgi?id=27924">bug 27924</a>, I noticed this problem in a checker program that I used
for <a href="http://reviews.llvm.org/D20774">http://reviews.llvm.org/D20774</a> :

$  cat movmsk.ll 
declare i32 @llvm.x86.sse2.pmovmskb.128(<16 x i8>)

define i1 @movmsk() {
  %movmsk = tail call i32 @llvm.x86.sse2.pmovmskb.128(<16 x i8>
zeroinitializer)
  %cmp = icmp eq i32 %movmsk, 65535
  ret i1 %cmp
}

$ ./llc -o  - movmsk.ll
...
    pxor    %xmm0, %xmm0
    pmovmskb    %xmm0, %eax
    cmpl    $65535, %eax            ## imm = 0xFFFF
    sete    %al
    retq


There doesn't seem to be any analysis for an X86ISD::MOVMSK node in the DAG.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>