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

    <tr>
        <th>Summary</th>
        <td>
            [Aarch64] llvm.aarch64.settag intrinsics cannot handle variable length
        </td>
    </tr>

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

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

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

<pre>
    Please implement one that can handle variable lengths. Thank you

```llvm
define void @stg1(ptr %p, i64 %val) {
; CHECK-LABEL: stg1:
; CHECK:       // %bb.0: // %entry
; CHECK-NEXT:    stg x0, [x0]
; CHECK-NEXT:    ret
entry:
  call void @llvm.aarch64.settag(ptr %p, i64 %val)
  ret void
}
declare void @llvm.aarch64.settag(ptr %p, i64 %a)
```

https://godbolt.org/z/f977nhrTW
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9vnDwQxj_NcLGCzPBvOXBgs0Gv9EZVD5Haq4FZcOs1K3t2m-2nr2yipK2aSkWWQDPMj3keHuW9ni1RC-UeykOiLrysrmU3Oq8dTcmwTrf2oyHlSejT2dCJLIvVkuBFsRiVFYuykyFxVU6rwZAwZGdefCqeFmW_itt6AdmFU8ntGHM9gewmOmpL4rrqSUAhPc8Z4O7MTgCWZ8B7oasiPF-VAWwE1PtAyffi_r-H-__vHrv9wyPknYiTefdzM5S3C7AH7ANmGFIZ6m8VsuxuvzA_PHx-epn1PItnGdaAcv8soTy896YjBtltsLiGEKMy5lVZ0Jsq5calKlJPzGr-m9AIcMRxPnyzPkS3RqMc_TtUbchX97efsTCffdg2mjGv07AaTlc3A_bfAftjU9d2cU-fkqnNpyZvVEJtVue5LCqssmRpm2qq5a4ZxqMc63xXDyXtinoasS6zKi9UoluUWGQoM9kUBWZp0ZCsdiNVNdKxkAiFpJPSJo1aVjcn2vsLtVm2Q5klRg1kfEwmoqVvInYBMQTVtWHobrjMPpihPfs3DGs2MdLd5g-UB_EHv4S27LT1evQhyHbld7KcXJxpf3NM83IZ0nE9AfYx0Nvt7uzWLzQyYB_X9YD9i55riz8CAAD__-zjBWM">