[clang] [llvm] [AArch64] Add intrinsic support for Fdot instr. (PR #189987)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 23 08:52:56 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 133829 tests passed
* 3136 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.CodeGen/AArch64/f16f32dot-intrinsics.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -triple aarch64-none-linux-gnu -target-feature +neon -target-feature +f16f32dot -disable-O0-optnone -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c | c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -passes=mem2reg,sroa,instcombine | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple aarch64-none-linux-gnu -target-feature +neon -target-feature +f16f32dot -disable-O0-optnone -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c:75:10: error: argument value 3 is outside the valid range [0, 1]
# |    75 |   return vdot_laneq_f32(r, a, b, 3);
# |       |          ^                       ~
# | C:\_work\llvm-project\llvm-project\build\lib\clang\23\include\arm_neon.h:41258:43: note: expanded from macro 'vdot_laneq_f32'
# |  41258 |   __ret = __builtin_bit_cast(float32x2_t, __builtin_neon_vdot_laneq_f32(__builtin_bit_cast(int8x8_t, __s0), __builtin_bit_cast(int8x8_t, __s1), __builtin_bit_cast(int8x16_t, __s2), __p3, 9)); \
# |        |                                           ^                                                                                                                                          ~~~~
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -passes=mem2reg,sroa,instcombine
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c:10:17: error: CHECK-LABEL: expected string not found in input
# | // CHECK-LABEL: define dso_local <2 x float> @test_vdot_f32(
# |                 ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = '<stdin>'
# | ^
# | <stdin>:2:5: note: possible intended match here
# | source_filename = "<stdin>"
# |     ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\f16f32dot-intrinsics.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = '<stdin>' 
# | label:10'0     X~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: source_filename = "<stdin>" 
# | label:10'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | label:10'1         ?                        possible intended match
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.Sema/aarch64-neon-immediate-ranges/dotprod.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -triple aarch64-linux-gnu -target-feature +neon -target-feature +v8.2a -target-feature +dotprod -target-feature +f16f32dot -ffreestanding -fsyntax-only -verify C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -triple aarch64-linux-gnu -target-feature +neon -target-feature +v8.2a -target-feature +dotprod -target-feature +f16f32dot -ffreestanding -fsyntax-only -verify 'C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c'
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c Line 58 (directive at C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c:59): argument value -1 is outside the valid range [0, 3]
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c Line 60 (directive at C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c:61): argument value 4 is outside the valid range [0, 3]
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c Line 63 (directive at C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c:64): argument value -1 is outside the valid range [0, 1]
# |   File C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c Line 65 (directive at C:\_work\llvm-project\llvm-project\clang\test\Sema\aarch64-neon-immediate-ranges\dotprod.c:66): argument value 2 is outside the valid range [0, 1]
# | error: 'expected-error' diagnostics seen but not expected: 
# |   Line 58: argument value -1 is outside the valid range [0, 1]
# |   Line 60: argument value 4 is outside the valid range [0, 1]
# |   Line 63: argument value -1 is outside the valid range [0, 3]
# | 7 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/189987


More information about the cfe-commits mailing list