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

    <tr>
        <th>Summary</th>
        <td>
            [AArch64] Indexed FMLA not supported
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          rj-jesus
      </td>
    </tr>
</table>

<pre>
    LLVM does not seem to assemble the [FMLA by element](https://developer.arm.com/documentation/ddi0596/2021-12/SIMD-FP-Instructions/FMLA--by-element---Floating-point-fused-Multiply-Add-to-accumulator--by-element--) instruction of the A64 instruction set. For example, the code below builds fine with GCC but fails with LLVM.
```c
int main(void)
{
  asm("fmla V23.2d, V0.2d, V6.2d");  // works
  asm("fmla V23.2d, V0.2d, V6.2d[0]");  // <-- problematic instruction
}
```
https://godbolt.org/z/E4aqvK1jh

Other “by element” instructions such as `fmul` are also affected.

CC @u99127
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU8tu7DYM_Rp6Q8iQ5cfYCy_mcV0ETdACBbKXLXqsVLZcPZKbfn1hzwQ3ya6AYZHEIXlI6Ujv9XUhaqE8QXlJZAyTda17YS_ko096q97bx8fnJ1SWPC42oCeaMViU3tPcG8IwEUJ56p4ej9i_IxmaaQlQXkDUUwirh_wIogPRKXolY1dyqXRzOth5i9khbngZtF02X2leNhWITnCRsUyA6P56eLqw7k_2sPjg4rAhPYhu68hY_87uLRljnbEy6OXKVquXwMboSbGnaIJezTs7KsWCZXIY4hyNDNZ9TQfRoP7VA-24D3esii9hTyHFzjqkn3JeDYE477jBKsKejH3DPmqjPI56IXzTYcLfzmfsY8BRauNvoW2tKfAL8CNU_PYNN18vAWepFxD1q9UKRHPHHU43A1H6GUQNQoyzkfgs8lSojcgz_zCq3RBbcn5CvF0Bvln3t_-fRcoT36_zey3Iz4zh6mxvaJZBD5_X9MH48m3Em_v1YVyt6q0JqXVXEN2_ILofhfzn9ffsZbpn7_8_wkQO4YeAmkNz_vTY7qHLZwIefRwmlB6h4uMcDVQcpSOUxluU40hDIJV-bnA-IxQ8Nk0mDolqc9XkjUyozapDJZoqyw7J1Pa8kVlRN3lFcqjrXlZ9UxeybEoaVClVolvBRc5Flmd5UeeHNC9zUj0_jEMt8zrnUHCapTapMa_zNnSivY_UVvzAq8TInoz_UKRrNxDr49VDwY32wf9KCzqYXbvHoxumqoDygg-Lop-kcNfjLti4rtYFUkl0pv22eB2m2N-luJW9H2x19oWGAKLbqW1y29n9FwAA__-qVUb6">