[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 29 06:49:46 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/8413
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/aarch64-mcpu-native.c' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 2: export LLVM_CPUINFO=/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/Inputs/cpunative/neoverse-v2
+ export LLVM_CPUINFO=/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/Inputs/cpunative/neoverse-v2
+ LLVM_CPUINFO=/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/Inputs/cpunative/neoverse-v2
RUN: at line 3: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang --target=aarch64 --print-enabled-extensions -mcpu=native | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --strict-whitespace --check-prefix=CHECK-FEAT-NV2 --implicit-check-not=FEAT_ /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/aarch64-mcpu-native.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang --target=aarch64 --print-enabled-extensions -mcpu=native
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck --strict-whitespace --check-prefix=CHECK-FEAT-NV2 --implicit-check-not=FEAT_ /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/aarch64-mcpu-native.c
clang version 20.0.0git (https://github.com/llvm/llvm-project.git d732c0b13c55259177f2936516b6087d634078e0)
Target: aarch64
Thread model: posix
InstalledDir: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin
Build config: +assertions
[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/aarch64-mcpu-native.c:11:23: [0m[0;1;31merror: [0m[1mCHECK-FEAT-NV2: expected string not found in input
[0m// CHECK-FEAT-NV2: FEAT_BF16 Enable BFloat16 Extension
[0;1;32m ^
[0m[1m<stdin>:6:93: [0m[0;1;30mnote: [0m[1mscanning from here
[0m FEAT_AdvSIMD Enable Advanced SIMD instructions
[0;1;32m ^
[0m[1m<stdin>:16:5: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m FEAT_FP16 Enable half-precision floating-point data processing
[0;1;32m ^
[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/aarch64-mcpu-native.c
-dump-input=help explains the following input dump.
Input was:
<<<<<<
[1m[0m[0;1;30m 1: [0m[1m[0;1;46m[0mExtensions enabled for the given AArch64 target[0;1;46m [0m
[0;1;32mcheck:5 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mnot:imp1'0 X
[0m[0;1;32mnot:imp1'1 X
[0m[0;1;30m 2: [0m[1m[0;1;46m[0m [0m
[0;1;32mempty:6 ^
[0m[0;1;32mnot:imp1'2 X
[0m[0;1;30m 3: [0m[1m[0;1;46m [0mArchitecture Feature(s) Description[0;1;46m [0m
[0;1;32mcheck:7 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mnot:imp1'2 ~~~~
[0m[0;1;32mnot:imp1'3 X
[0m[0;1;30m 4: [0m[1m[0;1;46m [0mFEAT_AES, FEAT_PMULL Enable AES support[0;1;46m [0m
[0;1;32mcheck:8 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;32mnot:imp1'3 ~~~~
[0m[0;1;32mnot:imp1'4 X
[0m[0;1;30m 5: [0m[1m[0;1;46m [0mFEAT_AMUv1 Enable Armv8.4-A Activity Monitors extension[0;1;46m [0m
[0;1;32mcheck:9 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
```
</details>
https://github.com/llvm/llvm-project/pull/97749
More information about the cfe-commits
mailing list