<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - clang on MIPS: Do not know how to split this operator's operand"
   href="https://bugs.llvm.org/show_bug.cgi?id=44018">44018</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang on MIPS: Do not know how to split this operator's operand
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>renat@idrisov.info
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi All,
I am getting fatal error when trying to compile intrinsic call when HW support
is not enabled.

$ clang -target mips64r6 -o <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.o <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c 
fatal error: error in backend: Do not know how to split this operator's
operand!

clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.1-+2019110812332108004e858e4ac00-1~exp1~20191108215024.72 
Target: mips64r6
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash backtrace, preprocessed source,
and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-db4001.c
clang: note: diagnostic msg: /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-db4001.sh
clang: note: diagnostic msg: 

********************

$ cat /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-db4001.sh
# Crash reproducer for clang version
9.0.1-+2019110812332108004e858e4ac00-1~exp1~20191108215024.72 
# Driver args: "--target=mips64r6" "-o" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.o" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c"
# Original command:  "/usr/lib/llvm-9/bin/clang" "-cc1" "-triple" "mips64r6"
"-emit-obj" "-mrelax-all" "-disable-free" "-disable-llvm-verifier"
"-discard-value-names" "-main-file-name" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c" "-mrelocation-model" "pic"
"-pic-level" "1" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-target-cpu" "mips64r6"
"-target-feature" "-noabicalls" "-target-abi" "n64" "-mfloat-abi" "hard"
"-dwarf-column-info" "-debugger-tuning=gdb" "-resource-dir"
"/usr/lib/llvm-9/lib/clang/9.0.1" "-fdebug-compilation-dir"
"/home/vagrant/llvm-bugs" "-ferror-limit" "19" "-fmessage-length" "0"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-faddrsig" "-o" "/tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-fb989c.o" "-x" "c" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c"
 "/usr/lib/llvm-9/bin/clang" "-cc1" "-triple" "mips64r6" "-emit-obj"
"-mrelax-all" "-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c" "-mrelocation-model" "pic" "-pic-level" "1"
"-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-masm-verbose"
"-mconstructor-aliases" "-target-cpu" "mips64r6" "-target-feature"
"-noabicalls" "-target-abi" "n64" "-mfloat-abi" "hard" "-dwarf-column-info"
"-debugger-tuning=gdb" "-ferror-limit" "19" "-fmessage-length" "0"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-faddrsig" "-x" "c" "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-db4001.c"

$ cat /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>-db4001.c
# 1 "<built-in>"
# 1 "<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Customize Bugzilla to have some LLVM flavah"
   href="show_bug.cgi?id=2">bug2</a>.c"
unsigned long long foo()
{
        long long __attribute__((vector_size(16), aligned(16))) sum = {0};
        return __builtin_msa_copy_u_d(sum, 0) + __builtin_msa_copy_u_d(sum, 1);
}


This can be resolved with CLI option `-mmsa`, but the way compiler fails to
process the source may be improved.

Thanks!</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>