<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/97466>97466</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Flang] flang-new ICE when specifying unsupported -march name on x86
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rscottmanley
      </td>
    </tr>
</table>

<pre>
    With current sources, flang-new results in an ICE if you specify an unsupported cpu/arch on x86. I was able to replicate with trunk and 18.1.0

```
print *, "hello"
end

$ flang-new hello.f90 -march=znver5 -S
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
'znver5' is not a recognized processor for this target (ignoring processor)
LLVM ERROR: 64-bit code requested on a subtarget that doesn't support it!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzslE9vpDgQxT-NuZQa0eb_gUNvupEiZbWrRNo9G1OAJ26bscvp6Xz6kfuPkpnj3EYaCYEwVY9X4N8T3qvZIHas_IuV-0QEWqzrnJeW6CiMxnMy2PHc_a9oARmcQ0PgbXASPeMPMGlh5o3BEzj0QZMHZUAYeHw4gJrgbAP4FaWaznE1GB_W1TrCEeQaGO-FkwtYA9-aKoVHOAkPYtAIZMHhqpUUhHCKLycXzCsIM8K2SbdpxrI9y3a3c5Xdjsvt6pQhYHwXHTLOF9TaMs6vT9GMP_Ty4tMUl9J0ajPYHKM3lu_fzRu6EjYv9_r6usJ4DcqDsQQCHEo7G_WOI6zOSvTeOpisA1qUBxJuxuioUbOxTpn5o4rx9o_wby_89PTf33B4fv7nmeU7qIrNoAikHREcfg3o4463BgT4MNwEaREEo0VvGK8JbmSAIsa3V9F_nw67l0NsOarocwhzpCJWkYWFaPUs3zHeM97PipYwpNIeGe-1frtfNquzX1AS473yPkRq-wtFykgdRgRaEKQTfoFByFdyQmL6E1XJ2OVjm7ciwW5bb9u2aPOySZauaooGiyovscnaaaoyWde1rOuqHHlVDCJRHc94kdUZ37YFz5u05iNOkrdcVNOUtS0rMjwKpdPoNbVuTi4uu7YuqirRYkDt7-HkustAQ5g9KzKtPPmPNlKkLzHWR5ZZuf8EdQyj04LmHkXxF36OoivqYMQRb1mUBKe7X__AV_dvHf8eAAD__5WSxj4">