[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 14 15:20:31 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/26007
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[857/1445] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/wasm-ld
-- Testing: 22734 tests, 60 workers --
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl (10293 of 22734)
******************** TEST 'Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/lib/clang/22/include -nostdsysteminc -triple dxil-pc-shadermodel6.3-library -finclude-default-header -emit-llvm -disable-llvm-passes -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl | llvm-cxxfilt | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl --check-prefixes=CHECK,DXIL # RUN: at line 1
+ llvm-cxxfilt
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/lib/clang/22/include -nostdsysteminc -triple dxil-pc-shadermodel6.3-library -finclude-default-header -emit-llvm -disable-llvm-passes -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl --check-prefixes=CHECK,DXIL
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl:29:15: error: DXIL-NEXT: expected string not found in input
// DXIL-NEXT: %[[COUNTER:.*]] = call i32 @llvm.dx.resource.updatecounter.tdx.RawBuffer_f32_1_0t(target("dx.RawBuffer", float, 1, 0) %[[HANDLE]], i8 1)
^
<stdin>:336:62: note: scanning from here
%0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
^
<stdin>:336:62: note: with "HANDLE" equal to "0"
%0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
^
<stdin>:338:2: note: possible intended match here
%2 = call ptr @llvm.dx.resource.getpointer.p0.tdx.RawBuffer_f32_1_0t(target("dx.RawBuffer", float, 1, 0) %0, i32 %1)
^
Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
331: %Index.addr = alloca i32, align 4
332: store ptr %this, ptr %this.addr, align 4
333: store i32 %Index, ptr %Index.addr, align 4
334: %this1 = load ptr, ptr %this.addr, align 4
335: %__handle = getelementptr inbounds nuw %"class.hlsl::RWStructuredBuffer", ptr %this1, i32 0, i32 0
336: %0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
Step 7 (check) failure: check (failure)
...
[857/1445] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:531: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/wasm-ld
-- Testing: 22734 tests, 60 workers --
Testing: 0.. 10.. 20.. 30.. 40
FAIL: Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl (10293 of 22734)
******************** TEST 'Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/lib/clang/22/include -nostdsysteminc -triple dxil-pc-shadermodel6.3-library -finclude-default-header -emit-llvm -disable-llvm-passes -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl | llvm-cxxfilt | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl --check-prefixes=CHECK,DXIL # RUN: at line 1
+ llvm-cxxfilt
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/lib/clang/22/include -nostdsysteminc -triple dxil-pc-shadermodel6.3-library -finclude-default-header -emit-llvm -disable-llvm-passes -o - /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-f_hlgg_v/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl --check-prefixes=CHECK,DXIL
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl:29:15: error: DXIL-NEXT: expected string not found in input
// DXIL-NEXT: %[[COUNTER:.*]] = call i32 @llvm.dx.resource.updatecounter.tdx.RawBuffer_f32_1_0t(target("dx.RawBuffer", float, 1, 0) %[[HANDLE]], i8 1)
^
<stdin>:336:62: note: scanning from here
%0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
^
<stdin>:336:62: note: with "HANDLE" equal to "0"
%0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
^
<stdin>:338:2: note: possible intended match here
%2 = call ptr @llvm.dx.resource.getpointer.p0.tdx.RawBuffer_f32_1_0t(target("dx.RawBuffer", float, 1, 0) %0, i32 %1)
^
Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/CodeGenHLSL/resources/StructuredBuffers-methods-lib.hlsl
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
331: %Index.addr = alloca i32, align 4
332: store ptr %this, ptr %this.addr, align 4
333: store i32 %Index, ptr %Index.addr, align 4
334: %this1 = load ptr, ptr %this.addr, align 4
335: %__handle = getelementptr inbounds nuw %"class.hlsl::RWStructuredBuffer", ptr %this1, i32 0, i32 0
336: %0 = load target("dx.RawBuffer", float, 1, 0), ptr %__handle, align 4
```
</details>
https://github.com/llvm/llvm-project/pull/161908
More information about the cfe-commits
mailing list