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

Fix Internal Compiler error: cast<X>() argument of incompatible type!… #7018

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Fix Internal Compiler error: cast<X>() argument of incompatible type!…

f5818dc
Select commit
Loading
Failed to load commit list.
Open

Fix Internal Compiler error: cast<X>() argument of incompatible type!… #7018

Fix Internal Compiler error: cast<X>() argument of incompatible type!…
f5818dc
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.DirectXShaderCompiler failed Nov 22, 2024 in 1h 6m 3s

Build #20241122.1 had test failures

Details

Tests

  • Failed: 24 (0.10%)
  • Passed: 24,402 (99.90%)
  • Other: 0 (0.00%)
  • Total: 24,426

Annotations

Check failure on line 11337 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

Build log #L11337

Cmd.exe exited with code '2'.

Check failure on line 4201 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

Build log #L4201

Bash exited with code '1'.

Check failure on line 4201 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

Build log #L4201

Bash exited with code '1'.

Check failure on line 7441 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

Build log #L7441

Bash exited with code '1'.

Check failure on line 1 in min16vector_constant_max.hlsl

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

min16vector_constant_max.hlsl

Test failed
Raw output
Script:
--
/Users/runner/work/1/s/build/./bin/dxc -T ps_6_0 -Od -Zi -Qembed_debug /Users/runner/work/1/s/tools/clang/test/DXC/min16vector_constant_max.hlsl | /Users/runner/work/1/s/build/./bin/FileCheck /Users/runner/work/1/s/tools/clang/test/DXC/min16vector_constant_max.hlsl
--
Exit Code: 2

Command Output (stderr):
--
error: no check strings found with prefix 'CHECK:'

--

	

Check failure on line 1 in CompilerTest.BatchHLSL

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

CompilerTest.BatchHLSL

Test failed
Raw output
Note: Google Test filter = CompilerTest.BatchHLSL
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompilerTest
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers_interproc_matrix.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers_interproc_matrix.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/subsequent_assignment.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/subsequent_assignment.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_consumers.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_consumers.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers_interproc.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/propagate_to_producers_interproc.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/disable-nrvo.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/disable-nrvo.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise1.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise1.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/static_variable.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/static_variable.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/vector.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/vector.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise2.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise2.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/initializer.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/initializer.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise_call_not.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise_call_not.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise-matrix-subscript.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise-matrix-subscript.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise3.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise3.hlsl>
BEGIN TEST(S): </Users/runner/work/1/s/tools/clang/test/HLSL/../HLSLFileCheck/hlsl/types/modifiers/precise/precise4.hlsl>
END TEST(S): </Users/runner/work/1/s/tools/cla

Check failure on line 1 in CompilerTest.CodeGenVectorAtan2

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

CompilerTest.CodeGenVectorAtan2

Test failed
Raw output
Note: Google Test filter = CompilerTest.CodeGenVectorAtan2
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompilerTest
// RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
Prior (0): %dxc -E main -T ps_6_0 %s 
Error (1): FileCheck %s
/Users/runner/work/1/s/tools/clang/test/HLSL/../CodeGenHLSL/atan2_vector_argument.hlsl:3:11: error: expected string not found in input
// CHECK: call void @dx.op.storeOutput.f32(i32 [[outputSigId:[0-9]+]], i32 0, i32 0, i8 0, float 0.0
          ^
<stdin>:1:1: note: scanning from here
;
^
<stdin>:61:2: note: possible intended match here
 call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0, float 0x3FF921FB60000000) ; StoreOutput(outputSigId,rowIndex,colIndex,value)
 ^

<full input to FileCheck>
;
; Input signature:
;
; Name                 Index   Mask Register SysValue  Format   Used
; -------------------- ----- ------ -------- -------- ------- ------
; no parameters
;
; Output signature:
;
; Name                 Index   Mask Register SysValue  Format   Used
; -------------------- ----- ------ -------- -------- ------- ------
; SV_Target                0   xyz         0   TARGET   float   xyz 
;
; shader hash: a35a36a9a8dab2ddb634e796532d1894
;
; Pipeline Runtime Information: 
;
;PSVRuntimeInfo:
; Pixel Shader
; DepthOutput=0
; SampleFrequency=0
; MinimumExpectedWaveLaneCount: 0
; MaximumExpectedWaveLaneCount: 4294967295
; UsesViewID: false
; SigInputElements: 0
; SigOutputElements: 1
; SigPatchConstOrPrimElements: 0
; SigInputVectors: 0
; SigOutputVectors[0]: 1
; SigOutputVectors[1]: 0
; SigOutputVectors[2]: 0
; SigOutputVectors[3]: 0
; EntryFunctionName: main
;
;
; Output signature:
;
; Name                 Index             InterpMode DynIdx
; -------------------- ----- ---------------------- ------
; SV_Target                0                              
;
; Buffer Definitions:
;
;
; Resource Bindings:
;
; Name                                 Type  Format         Dim      ID      HLSL Bind  Count
; ------------------------------ ---------- ------- ----------- ------- -------------- ------
;
;
; ViewId state:
;
; Number of inputs: 0, outputs: 3
; Outputs dependent on ViewId: {  }
; Inputs contributing to computation of Outputs:
;
target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64"
target triple = "dxil-ms-dx"

define void @main() {
  call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 0, float 0x3FF921FB60000000)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 1, float 0x3FF921FB60000000)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  call void @dx.op.storeOutput.f32(i32 5, i32 0, i32 0, i8 2, float 0x3FF921FB60000000)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  ret void
}

; Function Attrs: nounwind
declare void @dx.op.storeOutput.f32(i32, i32, i32, i8, float) #0

attributes #0 = { nounwind }

!llvm.ident = !{!0}
!dx.version = !{!1}
!dx.valver = !{!2}
!dx.shaderModel = !{!3}
!dx.typeAnnotations = !{!4}
!dx.viewIdState = !{!8}
!dx.entryPoints = !{!9}

!0 = !{!"dxc(private) 1.8.0.4774 (d9f30a27f)"}
!1 = !{i32 1, i32 0}
!2 = !{i32 1, i32 8}
!3 = !{!"ps", i32 6, i32 0}
!4 = !{i32 1, void ()* @main, !5}
!5 = !{!6}
!6 = !{i32 0, !7, !7}
!7 = !{}
!8 = !{[2 x i32] [i32 0, i32 3]}
!9 = !{void ()* @main, !"main", !10, null, null}
!10 = !{null, !11, null}
!11 = !{!12}
!12 = !{i32 0, !"SV_Target", i8 9, i8 16, !13, i8 0, i32 1, i8 3, i32 0, i8 0, !14}
!13 = !{i32 0}
!14 = !{i32 3, i32 7}

/Users/runner/work/1/s/include/dxc/Test/WEXAdapter.h:187: Failure
Failed
[  FAILED  ] CompilerTest.CodeGenVectorAtan2 (15 ms)
[----------] 1 test from CompilerTest (15 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (15 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] CompilerTest.CodeGenVectorAtan2

 1 FAILED TEST
Run result is not

Check failure on line 1 in CompilerTest.CodeGenVectorIsnan

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.DirectXShaderCompiler

CompilerTest.CodeGenVectorIsnan

Test failed
Raw output
Note: Google Test filter = CompilerTest.CodeGenVectorIsnan
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from CompilerTest
// RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
Prior (0): %dxc -E main -T ps_6_0 %s 
Error (1): FileCheck %s
/Users/runner/work/1/s/tools/clang/test/HLSL/../CodeGenHLSL/isnan_vector_argument.hlsl:3:11: error: expected string not found in input
// CHECK: call void @dx.op.storeOutput.i32(i32 [[outputSigId:[0-9]+]], i32 0, i32 0, i8 0, i32 0)
          ^
<stdin>:1:1: note: scanning from here
;
^
<stdin>:63:2: note: possible intended match here
 call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 0, i32 %1) ; StoreOutput(outputSigId,rowIndex,colIndex,value)
 ^

<full input to FileCheck>
;
; Input signature:
;
; Name                 Index   Mask Register SysValue  Format   Used
; -------------------- ----- ------ -------- -------- ------- ------
; no parameters
;
; Output signature:
;
; Name                 Index   Mask Register SysValue  Format   Used
; -------------------- ----- ------ -------- -------- ------- ------
; SV_Target                0   xyz         0   TARGET    uint   xyz 
;
; shader hash: 5866b64fe5808ab4817d1cfa09b1648c
;
; Pipeline Runtime Information: 
;
;PSVRuntimeInfo:
; Pixel Shader
; DepthOutput=0
; SampleFrequency=0
; MinimumExpectedWaveLaneCount: 0
; MaximumExpectedWaveLaneCount: 4294967295
; UsesViewID: false
; SigInputElements: 0
; SigOutputElements: 1
; SigPatchConstOrPrimElements: 0
; SigInputVectors: 0
; SigOutputVectors[0]: 1
; SigOutputVectors[1]: 0
; SigOutputVectors[2]: 0
; SigOutputVectors[3]: 0
; EntryFunctionName: main
;
;
; Output signature:
;
; Name                 Index             InterpMode DynIdx
; -------------------- ----- ---------------------- ------
; SV_Target                0                              
;
; Buffer Definitions:
;
;
; Resource Bindings:
;
; Name                                 Type  Format         Dim      ID      HLSL Bind  Count
; ------------------------------ ---------- ------- ----------- ------- -------------- ------
;
;
; ViewId state:
;
; Number of inputs: 0, outputs: 3
; Outputs dependent on ViewId: {  }
; Inputs contributing to computation of Outputs:
;
target datalayout = "e-m:e-p:32:32-i1:32-i8:32-i16:32-i32:32-i64:64-f16:32-f32:32-f64:64-n8:16:32:64"
target triple = "dxil-ms-dx"

define void @main() {
  %IsNaN = call i1 @dx.op.isSpecialFloat.f32(i32 8, float 0.000000e+00)  ; IsNaN(value)
  %1 = zext i1 %IsNaN to i32
  call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 0, i32 %1)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 1, i32 %1)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  call void @dx.op.storeOutput.i32(i32 5, i32 0, i32 0, i8 2, i32 %1)  ; StoreOutput(outputSigId,rowIndex,colIndex,value)
  ret void
}

; Function Attrs: nounwind
declare void @dx.op.storeOutput.i32(i32, i32, i32, i8, i32) #0

; Function Attrs: nounwind readnone
declare i1 @dx.op.isSpecialFloat.f32(i32, float) #1

attributes #0 = { nounwind }
attributes #1 = { nounwind readnone }

!llvm.ident = !{!0}
!dx.version = !{!1}
!dx.valver = !{!2}
!dx.shaderModel = !{!3}
!dx.typeAnnotations = !{!4}
!dx.viewIdState = !{!8}
!dx.entryPoints = !{!9}

!0 = !{!"dxc(private) 1.8.0.4774 (d9f30a27f)"}
!1 = !{i32 1, i32 0}
!2 = !{i32 1, i32 8}
!3 = !{!"ps", i32 6, i32 0}
!4 = !{i32 1, void ()* @main, !5}
!5 = !{!6}
!6 = !{i32 0, !7, !7}
!7 = !{}
!8 = !{[2 x i32] [i32 0, i32 3]}
!9 = !{void ()* @main, !"main", !10, null, null}
!10 = !{null, !11, null}
!11 = !{!12}
!12 = !{i32 0, !"SV_Target", i8 1, i8 16, !13, i8 0, i32 1, i8 3, i32 0, i8 0, !14}
!13 = !{i32 0}
!14 = !{i32 3, i32 7}

/Users/runner/work/1/s/include/dxc/Test/WEXAdapter.h:187: Failure
Failed
[  FAILED  ] CompilerTest.CodeGenVectorIsnan (15 ms)
[----------] 1 test from CompilerTest (15 ms total)

[----------] Global test environment tear-down
[==========] 1 test from