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

    <tr>
        <th>Summary</th>
        <td>
            'target=...' changes break some compiler-rt tests on sparcv9
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Since the `target='...'` patches landed, some `compiler-rt` tests `XPASS` on Solaris/sparcv9:
```
 XPASS: SanitizerCommon-ubsan-sparcv9-SunOS:: printf-ldbl.c
  XPASS: SanitizerCommon-ubsan-sparcv9-SunOS:: scanf-ldbl.c
  XPASS: UBSan-Standalone-sparcv9::cast-overflow.cpp
  XPASS: UBSan-Standalone-sparcv9::log-path_test.cpp
```
which is a regression. These were all changed like this:
```
-// XFAIL: sparc-target-arch && solaris
+// XFAIL: target={{sparc.*solaris.*}}
```
i.e. previously they were **only** `XFAIL`ed for 32-bit Solaris/sparc, while now the `XFAIL` applies unconditionally.  The `target='...'` keyword uses `target_triple` , which is **always** `sparcv9-sun-solaris2.11` in this build, both for tests built with `-m64` as well as for those built with `-m32`.  This is not a Solaris issue at all, but happens e.g. on `x86_64-pc-linux-gnu` (i.e. everywhere).

There are two options here:
- Those parts of the patch are wrong and should be reverted.  While this would restore the status quo, this doesn't really seem desirable in the long term if the goal is to use the `target='...'` syntax universally.
- If things should be expressible with `target='...'`, `target_triple` needs to be set differently for (e.g.) 32 and 64-bit multilibs, which is likely a massive change.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVV1vq0YQ_TXrlxEILwTbD35wbmTpSpVaybfqfbsaYAzbLLt0ZzGhv77aBStpmlRqJRTIej7POTOLzKo1REfx8CikHGxrHw5CSvHwtMHRd9YdnXW-21S2mY8XZWoC3xGIMvPoWvIifxJyl6apkDtRZjCg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