[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:13:41 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `clang` at step 4 "clean-build-dir".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/24857
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (clean-build-dir) failure: Delete failed. (failure)
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: CodeGenHLSL/resources/StructuredBuffers-methods-ps.hlsl' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc -triple dxil-pc-shadermodel6.3-pixel -finclude-default-header -emit-llvm -disable-llvm-passes -o - Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl | llvm-cxxfilt | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl --check-prefixes=CHECK,DXIL
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc -triple dxil-pc-shadermodel6.3-pixel -finclude-default-header -emit-llvm -disable-llvm-passes -o - 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl'
# note: command had no output on stdout or stderr
# executed command: llvm-cxxfilt
# note: command had no output on stdout or stderr
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl' --check-prefixes=CHECK,DXIL
# .---command stderr------------
# | [1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl:26:15: [0m[0;1;31merror: [0m[1mDXIL-NEXT: expected string not found in input
[0m# | [1m[0m// DXIL-NEXT: %[[VAL:.*]] = call i32 @llvm.dx.resource.updatecounter.tdx.RawBuffer_f32_1_1t(target("dx.RawBuffer", float, 1, 1) %[[HANDLE]], i8 1)
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:165:62: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0m %0 = load target("dx.RawBuffer", float, 1, 1), ptr %__handle, align 4
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:165:62: [0m[0;1;30mnote: [0m[1mwith "HANDLE" equal to "0"
[0m# | [1m[0m %0 = load target("dx.RawBuffer", float, 1, 1), ptr %__handle, align 4
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:167:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m %2 = call ptr @llvm.dx.resource.getpointer.p0.tdx.RawBuffer_f32_1_1t(target("dx.RawBuffer", float, 1, 1) %0, i32 %1)
# | [0;1;32m ^
[0m# | [0;1;32m[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | [1m[0m[0;1;30m 1: [0m[1m[0;1;46m; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\CodeGenHLSL\resources\StructuredBuffers-methods-ps.hlsl' [0m
# | [0;1;30m 2: [0m[1m[0;1;46msource_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\clang\\test\\CodeGenHLSL\\resources\\StructuredBuffers-methods-ps.hlsl" [0m
# | [0;1;30m 3: [0m[1m[0;1;46mtarget datalayout = "e-m:e-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64" [0m
# | [0;1;30m 4: [0m[1m[0;1;46mtarget triple = "dxilv1.3-pc-shadermodel6.3-pixel" [0m
# | [0;1;30m 5: [0m[1m[0;1;46m [0m
# | [0;1;30m 6: [0m[1m[0;1;46m%"class.hlsl::RasterizerOrderedStructuredBuffer" = type { target("dx.RawBuffer", float, 1, 1), target("dx.RawBuffer", float, 1, 1) } [0m
# | [0;1;30m 7: [0m[1m[0;1;46m%"class.hlsl::RasterizerOrderedStructuredBuffer.0" = type { target("dx.RawBuffer", <2 x i32>, 1, 1), target("dx.RawBuffer", <2 x i32>, 1, 1) } [0m
# | [0;1;30m 8: [0m[1m[0;1;46m [0m
# | [0;1;30m 9: [0m[1m[0;1;46m[0m at ROSB1 = internal global %"class.hlsl::RasterizerOrderedStructuredBuffer" poison[0;1;46m, align 4 [0m
# | [0;1;32mcheck:12 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 10: [0m[1m[0;1;46m at .str = private unnamed_addr constant [6 x i8] c"ROSB1\00", align 1 [0m
# | [0;1;30m 11: [0m[1m[0;1;46m[0m at ROSB2 = internal global %"class.hlsl::RasterizerOrderedStructuredBuffer.0" poison[0;1;46m, align 4 [0m
# | [0;1;32mcheck:13 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m# | [0;1;32m[0m[0;1;30m 12: [0m[1m[0;1;46m at .str.2 = private unnamed_addr constant [6 x i8] c"ROSB2\00", align 1 [0m
# | [0;1;30m 13: [0m[1m[0;1;46m [0m
# | [0;1;30m 14: [0m[1m[0;1;46m; Function Attrs: alwaysinline convergent nounwind [0m
# | [0;1;30m 15: [0m[1m[0;1;46mdefine internal void @__cxx_global_var_init() #0 { [0m
...
```
</details>
https://github.com/llvm/llvm-project/pull/161908
More information about the cfe-commits
mailing list