<html>
    <head>
      <base href="http://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 --- - AArch64: "Do not know how to scalarize this operator's operand!""
   href="http://llvm.org/bugs/show_bug.cgi?id=20778">20778</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AArch64: "Do not know how to scalarize this operator's operand!"
          </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: AArch64
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>grosbach@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following fails to compile for aarch64.

define void @autogen_SD27033() {                                                
BB:                                                                             
  %FC17 = sitofp <1 x i1> undef to <1 x double>                                 
  br label %CF80                                                                

CF80:                                             ; preds = %CF80, %BB          
  br i1 undef, label %CF80, label %CF79                                         

CF79:                                             ; preds = %CF79, %CF80        
  %Sl69 = select i1 undef, <1 x double> %FC17, <1 x double> undef               
  %Cmp70 = icmp ne i8 undef, undef                                              
  br i1 %Cmp70, label %CF79, label %CF82                                        

CF82:                                             ; preds = %CF79               
  ret void                                                                      
}

Found via llvm-stress.

$ llc -o - -mtriple=arm64-apple-darwin test.ll
ScalarizeVectorOperand Op #0: 0x7ffae9047250: v1f64 = sint_to_fp 0x7ffae9046460
[ORD=31] [ID=0]

Do not know how to scalarize this operator's operand!
UNREACHABLE executed at
/Users/grosbaj/sources/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp:403!
0  llc                      0x0000000106cac7be
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  llc                      0x0000000106cacacb
PrintStackTraceSignalHandler(void*) + 27
2  llc                      0x0000000106cace8c SignalHandler(int) + 460
3  libsystem_platform.dylib 0x00007fff882fef1a _sigtramp + 26
4  llc                      0x0000000107656a9e guard variable for
llvm::BitcodeErrorCategory()::O + 69646
5  llc                      0x0000000106cacafb raise + 27
6  llc                      0x0000000106cacbb2 abort + 18
7  llc                      0x0000000106c2a696
llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) + 198
8  llc                      0x0000000106a53bf3
llvm::DAGTypeLegalizer::ScalarizeVectorOperand(llvm::SDNode*, unsigned int) +
611
9  llc                      0x0000000106a303d6 llvm::DAGTypeLegalizer::run() +
1590
10 llc                      0x0000000106a360d2
llvm::SelectionDAG::LegalizeTypes() + 66
...</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>