Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing extendhfxf2 in compiler rt #109090

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Add missing extendhfxf2 in compiler rt #109090

merged 2 commits into from
Oct 1, 2024

Conversation

biabbas
Copy link
Contributor

@biabbas biabbas commented Sep 18, 2024

Issue: #105181
extendhfxf2 calls extendhfXfy to convert _Float16 to double, then type casts this converted value to long double.
__uint128_t may not be available on all architectures. Thus I din't use extendhfXfy to widen precision to 128 bits.

Copy link

Thank you for submitting a Pull Request (PR) to the LLVM Project!

This PR will be automatically labeled and the relevant teams will be notified.

If you wish to, you can add reviewers by using the "Reviewers" section on this page.

If this is not working for you, it is probably because you do not have write permissions for the repository. In which case you can instead tag reviewers by name in a comment by using @ followed by their GitHub username.

If you have received no comments on your PR for a week, you can request a review by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate is once a week. Please remember that you are asking for valuable time from other developers.

If you have further questions, they may be answered by the LLVM GitHub User Guide.

You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums.

@biabbas
Copy link
Contributor Author

biabbas commented Sep 19, 2024

Object file preview with the change in 34a8124. (Use extendhfxfy to do half->float convertion. Then typecase to long double.)

0000000000000170 <__extendhfxf2>:
 170:   50                      push   %rax
 171:   66 0f c5 c0 00          pextrw $0x0,%xmm0,%eax
 176:   66 89 44 24 06          mov    %ax,0x6(%rsp)
 17b:   66 0f c4 44 24 06 00    pinsrw $0x0,0x6(%rsp),%xmm0
 182:   e8 99 fe ff ff          call   20 <__extendXfYf2__>
 187:   f3 0f 11 04 24          movss  %xmm0,(%rsp)
 18c:   d9 04 24                flds   (%rsp)
 18f:   58                      pop    %rax
 190:   c3                      ret    
 191:   66 66 66 66 66 66 2e    data16 data16 data16 data16 data16 cs nopw 0x0(%rax,%rax,1)
 198:   0f 1f 84 00 00 00 00 
 19f:   00 

@biabbas
Copy link
Contributor Author

biabbas commented Sep 23, 2024

@overmighty Can you please review this?

@biabbas biabbas force-pushed the extendhfxf2 branch 2 times, most recently from 815093f to 7272818 Compare September 26, 2024 12:13
Copy link
Contributor

@lntue lntue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some simple test cases to llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c?

@biabbas biabbas force-pushed the extendhfxf2 branch 2 times, most recently from d49e7f0 to fb2e1e0 Compare September 27, 2024 11:24
@biabbas biabbas requested a review from lntue September 27, 2024 12:00
Copy link

github-actions bot commented Sep 27, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@lntue
Copy link
Contributor

lntue commented Sep 27, 2024

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
View the diff from clang-format here.

Can you run clang-format and sync to head to fix buildkite errors? Thanks

@biabbas biabbas force-pushed the extendhfxf2 branch 3 times, most recently from 9658964 to f0dbc84 Compare September 30, 2024 04:13
@lntue lntue merged commit a57a83f into llvm:main Oct 1, 2024
8 checks passed
Copy link

github-actions bot commented Oct 1, 2024

@biabbas Congratulations on having your first Pull Request (PR) merged into the LLVM Project!

Your changes will be combined with recent changes from other authors, then tested by our build bots. If there is a problem with a build, you may receive a report in an email or a comment on this PR.

Please check whether problems have been caused by your change specifically, as the builds can include changes from many authors. It is not uncommon for your change to be included in a build that fails due to someone else's changes, or infrastructure issues.

How to do this, and the rest of the post-merge process, is covered in detail here.

If your change does cause a problem, it may be reverted, or you can revert it yourself. This is a normal part of LLVM development. You can fix your changes and open a new PR to merge them again.

If you don't get any reports, no action is required from you. Your changes are working as expected, well done!

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 1, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building compiler-rt,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
-- LIBOMP: Use Hwloc library    -- FALSE
-- LIBOMP: Use OMPX-taskgraph   -- FALSE
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development Development.Module Development.Embed) (found version "3.8.11")
-- Configuring done
-- Generating done
-- Build files have been written to: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins
[4/5] cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins && /usr/local/bin/cmake --build /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/ --target check-compiler-rt --config RelWithDebInfo
[0/1] Running compiler_rt regression tests
-- Testing: 221 tests, 48 workers --
Testing:  0.. 10
FAIL: Builtins-ve-linux :: extendhfxf2_test.c (29 of 221)
******************** TEST 'Builtins-ve-linux :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang   -gline-tables-only  -target ve-unknown-linux-gnu -O2 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -fno-builtin -I /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./lib/../lib/clang/20/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a -lc -lm -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp &&  /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang -gline-tables-only -target ve-unknown-linux-gnu -O2 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fno-builtin -I /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./lib/../lib/clang/20/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a -lc -lm -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:8:27: error: _Float16 is not supported on this target
    8 | long double __extendhfxf2(_Float16 f);
      |                           ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:10:22: error: _Float16 is not supported on this target
   10 | int test_extendhfxf2(_Float16 a, long double expected) {
      |                      ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:23:26: error: _Float16 is not supported on this target
   23 | char assumption_1[sizeof(_Float16) * CHAR_BIT == 16] = {0};
      |                          ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
   47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
      |                                                 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
   57 |                        (long double)__builtin_nanf64x("")))
      |                                     ^
5 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Builtins-ve-linux :: extendhfxf2_test.c


Testing Time: 9.31s

Total Discovered Tests: 221
  Unsupported:  76 (34.39%)
  Passed     : 144 (65.16%)
Step 9 (check-crt-ve) failure: check-crt-ve (failure)
...
-- LIBOMP: Use Hwloc library    -- FALSE
-- LIBOMP: Use OMPX-taskgraph   -- FALSE
-- Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES Development Development.Module Development.Embed) (found version "3.8.11")
-- Configuring done
-- Generating done
-- Build files have been written to: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins
[4/5] cd /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins && /usr/local/bin/cmake --build /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/ --target check-compiler-rt --config RelWithDebInfo
[0/1] Running compiler_rt regression tests
-- Testing: 221 tests, 48 workers --
Testing:  0.. 10
FAIL: Builtins-ve-linux :: extendhfxf2_test.c (29 of 221)
******************** TEST 'Builtins-ve-linux :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang   -gline-tables-only  -target ve-unknown-linux-gnu -O2 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta   -fno-builtin -I /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./lib/../lib/clang/20/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a -lc -lm -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp &&  /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./bin/clang -gline-tables-only -target ve-unknown-linux-gnu -O2 -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -fno-builtin -I /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/./lib/../lib/clang/20/lib/ve-unknown-linux-gnu/libclang_rt.builtins.a -lc -lm -o /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/runtimes/runtimes-ve-unknown-linux-gnu-bins/compiler-rt/test/builtins/Unit/VELinuxConfig/Output/extendhfxf2_test.c.tmp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:8:27: error: _Float16 is not supported on this target
    8 | long double __extendhfxf2(_Float16 f);
      |                           ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:10:22: error: _Float16 is not supported on this target
   10 | int test_extendhfxf2(_Float16 a, long double expected) {
      |                      ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:23:26: error: _Float16 is not supported on this target
   23 | char assumption_1[sizeof(_Float16) * CHAR_BIT == 16] = {0};
      |                          ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
   47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
      |                                                 ^
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
   57 |                        (long double)__builtin_nanf64x("")))
      |                                     ^
5 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Builtins-ve-linux :: extendhfxf2_test.c


Testing Time: 9.31s

Total Discovered Tests: 221
  Unsupported:  76 (34.39%)
  Passed     : 144 (65.16%)

@lntue
Copy link
Contributor

lntue commented Oct 1, 2024

@biabbas Look like some extra guards are needed. I'm going to revert the PR and wait for your fix.

lntue added a commit that referenced this pull request Oct 1, 2024
lntue added a commit that referenced this pull request Oct 1, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 1, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-windows running on sanitizer-windows while building compiler-rt,llvm at step 4 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/sanitizer-windows.py ...' (failure)
...
[102/126] Linking CXX executable bin\llvm-size.exe
[103/126] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.x86_64-inline.o
[104/126] Generating X86_64WindowsConfig/Asan-x86_64-inline-Test.exe
[105/126] Linking CXX executable bin\llvm-symbolizer.exe
[105/126] Running the Builtins tests
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\gnuwin32\bin
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\lit.common.cfg.py:60: warning: Path reported by clang does not exist: "C:\b\slave\sanitizer-windows\build\stage1\lib\clang\20\lib\x86_64-pc-windows-msvc". This path was found by running ['C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe', '--target=x86_64-pc-windows-msvc', '-print-runtime-dir'].
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\lit.common.cfg.py:60: warning: Path reported by clang does not exist: "C:\b\slave\sanitizer-windows\build\stage1\lib\clang\20\lib\x86_64-pc-windows-msvc". This path was found by running ['C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe', '--target=x86_64-pc-windows-msvc', '-print-runtime-dir'].
-- Testing: 221 tests, 16 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: Builtins-x86_64-windows :: extendhfxf2_test.c (221 of 221)
******************** TEST 'Builtins-x86_64-windows :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe   -gline-tables-only -gcodeview -gcolumn-info      -fno-builtin -I C:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\builtins -nodefaultlibs C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c C:/b/slave/sanitizer-windows/build/stage1/./lib/../lib/clang/20/lib/windows\clang_rt.builtins-x86_64.lib -o C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp &&  C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp
# executed command: C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe -gline-tables-only -gcodeview -gcolumn-info -fno-builtin -I 'C:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\builtins' -nodefaultlibs 'C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c' 'C:/b/slave/sanitizer-windows/build/stage1/./lib/../lib/clang/20/lib/windows\clang_rt.builtins-x86_64.lib' -o 'C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp'
# .---command stderr------------
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:12:3: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
# |    12 |   __uint16_t *b = (void *)&a;
# |       |   ^~~~~~~~~~
# |       |   __uint128_t
# | note: '__uint128_t' declared here
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
# |    47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
# |       |                                                 ^
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
# |    57 |                        (long double)__builtin_nanf64x("")))
# |       |                                     ^
# | 3 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (1):
  Builtins-x86_64-windows :: extendhfxf2_test.c


Testing Time: 7.02s

Total Discovered Tests: 221
  Unsupported      : 144 (65.16%)
  Passed           :  75 (33.94%)
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
[102/126] Linking CXX executable bin\llvm-size.exe
[103/126] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.x86_64-inline.o
[104/126] Generating X86_64WindowsConfig/Asan-x86_64-inline-Test.exe
[105/126] Linking CXX executable bin\llvm-symbolizer.exe
[105/126] Running the Builtins tests
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\gnuwin32\bin
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\lit.common.cfg.py:60: warning: Path reported by clang does not exist: "C:\b\slave\sanitizer-windows\build\stage1\lib\clang\20\lib\x86_64-pc-windows-msvc". This path was found by running ['C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe', '--target=x86_64-pc-windows-msvc', '-print-runtime-dir'].
llvm-lit.py: C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\lit.common.cfg.py:60: warning: Path reported by clang does not exist: "C:\b\slave\sanitizer-windows\build\stage1\lib\clang\20\lib\x86_64-pc-windows-msvc". This path was found by running ['C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe', '--target=x86_64-pc-windows-msvc', '-print-runtime-dir'].
-- Testing: 221 tests, 16 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: Builtins-x86_64-windows :: extendhfxf2_test.c (221 of 221)
******************** TEST 'Builtins-x86_64-windows :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe   -gline-tables-only -gcodeview -gcolumn-info      -fno-builtin -I C:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\builtins -nodefaultlibs C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c C:/b/slave/sanitizer-windows/build/stage1/./lib/../lib/clang/20/lib/windows\clang_rt.builtins-x86_64.lib -o C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp &&  C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp
# executed command: C:/b/slave/sanitizer-windows/build/stage1/./bin/clang.exe -gline-tables-only -gcodeview -gcolumn-info -fno-builtin -I 'C:/b/slave/sanitizer-windows/llvm-project/compiler-rt\lib\builtins' -nodefaultlibs 'C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c' 'C:/b/slave/sanitizer-windows/build/stage1/./lib/../lib/clang/20/lib/windows\clang_rt.builtins-x86_64.lib' -o 'C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\test\builtins\Unit\X86_64WindowsConfig\Output\extendhfxf2_test.c.tmp'
# .---command stderr------------
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:12:3: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
# |    12 |   __uint16_t *b = (void *)&a;
# |       |   ^~~~~~~~~~
# |       |   __uint128_t
# | note: '__uint128_t' declared here
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
# |    47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
# |       |                                                 ^
# | C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\test\builtins\Unit\extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
# |    57 |                        (long double)__builtin_nanf64x("")))
# |       |                                     ^
# | 3 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
********************
Failed Tests (1):
  Builtins-x86_64-windows :: extendhfxf2_test.c


Testing Time: 7.02s

Total Discovered Tests: 221
  Unsupported      : 144 (65.16%)
  Passed           :  75 (33.94%)

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 1, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-ppc64le-linux running on ppc64le-sanitizer while building compiler-rt,llvm at step 2 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
Testing:  0.. 10.. 
FAIL: Builtins-powerpc64le-linux :: extendhfxf2_test.c (1077 of 5063)
******************** TEST 'Builtins-powerpc64le-linux :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang   -gline-tables-only  -m64 -fno-function-sections -nobuiltininc -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include -idirafter /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux  -fno-builtin -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux/libclang_rt.builtins-powerpc64le.a -lc -lm -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang -gline-tables-only -m64 -fno-function-sections -nobuiltininc -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include -idirafter /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux -fno-builtin -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux/libclang_rt.builtins-powerpc64le.a -lc -lm -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:8:27: error: _Float16 is not supported on this target
    8 | long double __extendhfxf2(_Float16 f);
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:10:22: error: _Float16 is not supported on this target
   10 | int test_extendhfxf2(_Float16 a, long double expected) {
      |                      ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:23:26: error: _Float16 is not supported on this target
   23 | char assumption_1[sizeof(_Float16) * CHAR_BIT == 16] = {0};
      |                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
   47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
      |                                                 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
   57 |                        (long double)__builtin_nanf64x("")))
      |                                     ^
5 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 

23 warning(s) in tests
Slowest Tests:
--------------------------------------------------------------------------
266.14s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Dynamic-Test/AddressSanitizer/OOBRightTest
265.30s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Test/AddressSanitizer/OOBRightTest
261.95s: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Dynamic-Test/AddressSanitizer/OOBRightTest
260.81s: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Test/AddressSanitizer/OOBRightTest
242.65s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Dynamic-Test/AddressSanitizer/SimpleStackTest
241.02s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Test/AddressSanitizer/SimpleStackTest
Step 14 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/utils/lit/lit/discovery.py:276: warning: input '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/sanitizer_common/Unit' contained no tests
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
llvm-lit: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/powerpc64le-unknown-linux-gnu". This path was found by running ['/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang', '--target=powerpc64le-unknown-linux-gnu', '-m64', '-fno-function-sections', '-nobuiltininc', '-I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include', '-idirafter', '/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include', '-resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build', '-Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux', '-print-runtime-dir'].
Testing:  0.. 10.. 
FAIL: Builtins-powerpc64le-linux :: extendhfxf2_test.c (1077 of 5063)
******************** TEST 'Builtins-powerpc64le-linux :: extendhfxf2_test.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang   -gline-tables-only  -m64 -fno-function-sections -nobuiltininc -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include -idirafter /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux  -fno-builtin -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux/libclang_rt.builtins-powerpc64le.a -lc -lm -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp &&  /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp
+ /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang -gline-tables-only -m64 -fno-function-sections -nobuiltininc -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/include -idirafter /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/lib/clang/20/include -resource-dir=/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build -Wl,-rpath,/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux -fno-builtin -I /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/lib/builtins -nodefaultlibs /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/lib/linux/libclang_rt.builtins-powerpc64le.a -lc -lm -o /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/compiler_rt_build/test/builtins/Unit/POWERPC64LELinuxConfig/Output/extendhfxf2_test.c.tmp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:8:27: error: _Float16 is not supported on this target
    8 | long double __extendhfxf2(_Float16 f);
      |                           ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:10:22: error: _Float16 is not supported on this target
   10 | int test_extendhfxf2(_Float16 a, long double expected) {
      |                      ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:23:26: error: _Float16 is not supported on this target
   23 | char assumption_1[sizeof(_Float16) * CHAR_BIT == 16] = {0};
      |                          ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:47:49: error: use of unknown builtin '__builtin_huge_valf64x' [-Wimplicit-function-declaration]
   47 |   if (test_extendhfxf2(__builtin_huge_valf16(), __builtin_huge_valf64x()))
      |                                                 ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/compiler-rt/test/builtins/Unit/extendhfxf2_test.c:57:37: error: use of unknown builtin '__builtin_nanf64x' [-Wimplicit-function-declaration]
   57 |                        (long double)__builtin_nanf64x("")))
      |                                     ^
5 errors generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..

23 warning(s) in tests
Slowest Tests:
--------------------------------------------------------------------------
266.14s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Dynamic-Test/AddressSanitizer/OOBRightTest
265.30s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Test/AddressSanitizer/OOBRightTest
261.95s: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Dynamic-Test/AddressSanitizer/OOBRightTest
260.81s: AddressSanitizer-Unit :: ./Asan-powerpc64le-calls-Test/AddressSanitizer/OOBRightTest
242.65s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Dynamic-Test/AddressSanitizer/SimpleStackTest
241.02s: AddressSanitizer-Unit :: ./Asan-powerpc64le-inline-Test/AddressSanitizer/SimpleStackTest

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 2, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-win running on as-worker-93 while building compiler-rt,llvm at step 7 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Support/./SupportTests.exe/35/87' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe-LLVM-Unit-3832-35-87.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=87 GTEST_SHARD_INDEX=35 C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe
--

Script:
--
C:\a\lld-x86_64-win\build\unittests\Support\.\SupportTests.exe --gtest_filter=ProgramEnvTest.CreateProcessLongPath
--
C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(160): error: Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp(163): error: fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied



C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:160
Expected equality of these values:
  0
  RC
    Which is: -2

C:\a\lld-x86_64-win\llvm-project\llvm\unittests\Support\ProgramTest.cpp:163
fs::remove(Twine(LongPath)): did not return errc::success.
error number: 13
error message: permission denied




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


puja2196 pushed a commit to puja2196/LLVM-tutorial that referenced this pull request Oct 2, 2024
VitaNuo pushed a commit to VitaNuo/llvm-project that referenced this pull request Oct 2, 2024
Issue: llvm#105181
extendhfxf2 calls extendhfXfy to convert _Float16 to double, then type
casts this converted value to long double.
__uint128_t may not be available on all architectures. Thus I din't use
extendhfXfy to widen precision to 128 bits.
VitaNuo pushed a commit to VitaNuo/llvm-project that referenced this pull request Oct 2, 2024
VitaNuo pushed a commit to VitaNuo/llvm-project that referenced this pull request Oct 2, 2024
Issue: llvm#105181
extendhfxf2 calls extendhfXfy to convert _Float16 to double, then type
casts this converted value to long double.
__uint128_t may not be available on all architectures. Thus I din't use
extendhfXfy to widen precision to 128 bits.
VitaNuo pushed a commit to VitaNuo/llvm-project that referenced this pull request Oct 2, 2024
Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
Issue: llvm#105181
extendhfxf2 calls extendhfXfy to convert _Float16 to double, then type
casts this converted value to long double.
__uint128_t may not be available on all architectures. Thus I din't use
extendhfXfy to widen precision to 128 bits.
Sterling-Augustine pushed a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
xgupta pushed a commit to xgupta/llvm-project that referenced this pull request Oct 4, 2024
Issue: llvm#105181
extendhfxf2 calls extendhfXfy to convert _Float16 to double, then type
casts this converted value to long double.
__uint128_t may not be available on all architectures. Thus I din't use
extendhfXfy to widen precision to 128 bits.
xgupta pushed a commit to xgupta/llvm-project that referenced this pull request Oct 4, 2024
lntue pushed a commit that referenced this pull request Oct 26, 2024
Retry pr #109090 with updated extendhfxf2 test
winner245 pushed a commit to winner245/llvm-project that referenced this pull request Oct 26, 2024
Retry pr llvm#109090 with updated extendhfxf2 test
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Retry pr llvm#109090 with updated extendhfxf2 test
arichardson added a commit that referenced this pull request Nov 25, 2024
Retry of pr #109090 and #111099.

Co-authored-by: Alexander Richardson <alexrichardson@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants