<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 - fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume"
   href="https://bugs.llvm.org/show_bug.cgi?id=42530">42530</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arthur.j.odwyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22202" name="attach_22202" title="test-1ed13d.sh (run script produced by Clang)">attachment 22202</a> <a href="attachment.cgi?id=22202&action=edit" title="test-1ed13d.sh (run script produced by Clang)">[details]</a></span>
test-1ed13d.sh (run script produced by Clang)

Since the ICE message talks about the "backend", I wonder if this is an
indication that -fcoroutines-ts just isn't implemented for Mac OSX yet. (I'm on
OSX 10.11.6, but using an LLVM/Clang that was built from master.)

The following test case is extremely reduced.

====

cat > test.c <<EOF
void *f();
int main() {
    void *coro = f();
    __builtin_coro_resume(coro);
}
EOF
clang -fcoroutines-ts -c test.c

====

fatal error: error in backend: Cannot select: intrinsic %llvm.coro.resume
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (<a href="mailto:git@github.com">git@github.com</a>:Quuxplusone/clang.git
0b0fedcf8ea844fb1ad956f418825b3b17154e16) (<a href="https://git.llvm.org/git/llvm.git">https://git.llvm.org/git/llvm.git</a>
f528f0e60898197fde2faf503c36abad5e033dd8)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Users/ajo/Desktop/push.root/llvm/build/bin
clang-9: 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-9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg:
/var/folders/1z/jvnkrdws621c6wmrcf7q_9180000gn/T/test-1ed13d.c
clang-9: note: diagnostic msg:
/var/folders/1z/jvnkrdws621c6wmrcf7q_9180000gn/T/test-1ed13d.sh
clang-9: note: diagnostic msg: Crash backtrace is located in
clang-9: note: diagnostic msg:
/Users/ajo/Library/Logs/DiagnosticReports/clang-9_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-9: note: diagnostic msg: (choose the .crash file that corresponds to your
crash)
clang-9: note: diagnostic msg: 

********************</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>