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

    <tr>
        <th>Summary</th>
        <td>
            error: invalid instruction, did you mean: b, bl, blx?
        </td>
    </tr>

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

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

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

<pre>
    Building pixman for arm (android but I assume it would be the same for linux) fails on some assembly, with the following error:
```
<instantiation>:44:2: error: invalid instruction, did you mean: b, bl, blx?
 blh 2f
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:154:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_0565_0565_SRC_asm_armv6, 1, h, 80, 32
^
<instantiation>:59:2: error: invalid instruction, did you mean: b, bl, blx?
 blh 2f
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:154:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_0565_0565_SRC_asm_armv6, 1, h, 80, 32
^
<instantiation>:66:2: error: invalid instruction, did you mean: tst?
 tsh W, #2
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:154:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_0565_0565_SRC_asm_armv6, 1, h, 80, 32
^
<instantiation>:70:2: error: invalid instruction, did you mean: tst?
 tsh W, #1
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:154:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_0565_0565_SRC_asm_armv6, 1, h, 80, 32
^
<instantiation>:66:2: error: instruction 't' can not set flags, but 's' suffix specified
 ts W, #2
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:157:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_8888_8888_SRC_asm_armv6, 2, , 48, 32
^
<instantiation>:70:2: error: instruction 't' can not set flags, but 's' suffix specified
 ts W, #1
 ^
/builds/worker/checkouts/gecko/gfx/cairo/libpixman/src/pixman-arm-simd-asm-scaled.S:157:1: note: while in macro instantiation
generate_nearest_scanline_func pixman_scaled_nearest_scanline_8888_8888_SRC_asm_armv6, 2, , 48, 32
^
```
STR:
- Download and unpack [pixman.zip](https://github.com/user-attachments/files/16183789/pixman.zip)
- `clang --target=arm-linux-androideabi21 -o pixman.o -c pixman.s`

This is a regression from f8b1ca4992a22b4b65282c09dd6f07a1a2839070

Cc: @MaskRay 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsl81u4zYQx5-GvgxkSKPvgw5eew300EuyQI_GSKQkNhRpkFTs9OkLSo6DYIsedrftFghgDE1phkP-f6QwJOfkoIVoWP6J5YcNzX40thkUaS7nadMa_tJ8mqXiUg9wlteJNPTGAtkJGFakuTWSQzt7-AXIuXkSID1czKw4tAL8KMDRJJYgJfV8ZVhDT1I5MBqcmUQIE1OrXhju4SL9uAT1RilzCVmFtcaydMfiA4t3rIhvv7Wb7qV2nrSX5KXRLP3M0l2WsXSHLN3dg0HqZ1KSQ_C2c7f44h645PBiZpgE6eDWhoetWu2Vpcc1DbRqBOxvHZZ_vmXHYxvEcQyPF2OfhGV47EbRPZnZh4dD-Bva_hrekLShp2S7Ssnw6GzH8Lh2I7JT5OTEI3JT5DpSgm8fWbpL8rCgJExQGy9CexmlEiA1TNRZA-9FWCY3CC0seXHSgqxw_uQ60kpqcepn3d1gntYsX_vEeZGv5vFhfyI3nchOz0UQJglmDKaKg03xpsZdlr-EktcfUH46KEXxrVC8828kvBvht-DF8DXxB5BvAlLGPxxI8gHkR5-QOwhgWHqGJXSkwyLBCQ-9osEtX6vZB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