[clang] [Clang][NEON] Add neon target guard to intrinsics (PR #98624)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 04:15:03 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `clang` at step 7 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/2343

Here is the relevant piece of the build log for the reference:
```
Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Sema/aarch64-neon-without-target-feature.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -internal-isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/lib/clang/19/include -nostdsysteminc -triple aarch64-none-linux-gnu -target-feature +dotprod  -target-feature +fullfp16 -target-feature +fp16fml -target-feature +i8mm -target-feature +bf16 -verify -emit-llvm -o - /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/clang -cc1 -internal-isystem /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/lib/clang/19/include -nostdsysteminc -triple aarch64-none-linux-gnu -target-feature +dotprod -target-feature +fullfp16 -target-feature +fp16fml -target-feature +i8mm -target-feature +bf16 -verify -emit-llvm -o - /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp
error: 'expected-error' diagnostics expected but not seen: 
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 9: always_inline function 'vdot_u32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 10: always_inline function 'vdot_u32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 10: '__builtin_neon_splat_laneq_v' needs target feature neon
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 12: always_inline function 'vceqz_f16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 13: always_inline function 'vrnd_f16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 14: always_inline function 'vmaxnm_f16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 15: always_inline function 'vrndi_f16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 17: always_inline function 'vfmlal_low_f16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 19: always_inline function 'vmmlaq_s32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 20: always_inline function 'vusdot_s32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 20: '__builtin_neon_splat_laneq_v' needs target feature neon
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 22: always_inline function 'vbfdot_f32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 24: '__builtin_neon_splat_lane_bf16' needs target feature bf16,neon
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 25: always_inline function 'vdup_n_bf16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 26: '__builtin_neon_vld1_bf16' needs target feature bf16,neon
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 27: always_inline function 'vcvt_f32_bf16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 28: always_inline function 'vcvt_bf16_f32' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 29: always_inline function 'vmull_p64' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 30: always_inline function 'vmull_high_p64' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 31: always_inline function 'vtrn1_s8' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 32: always_inline function 'vqabsq_s16' requires target feature 'neon'
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 33: always_inline function 'vbslq_s16' requires target feature 'neon'
error: 'expected-error' diagnostics seen but not expected: 
  File /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Sema/aarch64-neon-without-target-feature.cpp Line 5: 'arm_neon.h' file not found
23 errors generated.

--

********************


```

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


More information about the cfe-commits mailing list