[clang] [RISCV][FMV] Support target_version (PR #99040)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 20:17:20 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all".

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

<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 :: CodeGen/attr-target-version-riscv-invalid.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple riscv64 -target-feature +i -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c 2>&1 | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c --check-prefix=CHECK-UNSUPPORT-OS
+ not /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Users/buildbot/buildbot-root/aarch64-darwin/build/lib/clang/20/include -nostdsysteminc -triple riscv64 -target-feature +i -emit-llvm -o - /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c --check-prefix=CHECK-UNSUPPORT-OS
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c:3:24: error: CHECK-UNSUPPORT-OS: expected string not found in input
// CHECK-UNSUPPORT-OS: error: function multiversioning is currently only supported on Linux
                       ^
<stdin>:1:1: note: scanning from here
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c:8:48: error: function multiversioning doesn't support feature '9'
^
<stdin>:1:120: note: possible intended match here
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c:8:48: error: function multiversioning doesn't support feature '9'
                                                                                                                       ^

Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/CodeGen/attr-target-version-riscv-invalid.c:8:48: error: function multiversioning doesn't support feature '9' 
check:3'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:3'1                                                                                                                            ?                                                            possible intended match
           2:  8 | __attribute__((target_version("arch=+c"))) int foo(void) { 
check:3'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           3:  | ^ 
check:3'0     ~~~~~
           4: 1 error generated. 
check:3'0     ~~~~~~~~~~~~~~~~~~~
>>>>>>

--

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


```

</details>

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


More information about the cfe-commits mailing list