File tree 2 files changed +35
-2
lines changed
2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -3752,12 +3752,18 @@ SlangResult EndToEndCompileRequest::executeActionsInner()
3752
3752
{
3753
3753
DiagnosticSinkWriter writer (frontEndReq->getSink ());
3754
3754
3755
- dumpIR (
3755
+ dumpIR (
3756
3756
translationUnit->getModule ()->getIRModule (),
3757
3757
frontEndReq->m_irDumpOptions ,
3758
3758
" PRECOMPILE_FOR_TARGET_COMPLETE_ALL" ,
3759
3759
frontEndReq->getSourceManager (),
3760
3760
&writer);
3761
+
3762
+ dumpIR (
3763
+ translationUnit->getModule ()->getIRModule ()->getModuleInst (),
3764
+ frontEndReq->m_irDumpOptions ,
3765
+ frontEndReq->getSourceManager (),
3766
+ &writer);
3761
3767
}
3762
3768
}
3763
3769
}
@@ -5527,7 +5533,6 @@ RefPtr<ComponentType> CompositeComponentType::create(
5527
5533
// Y = compose(C,D);
5528
5534
// Z = compose(X,Y);
5529
5535
//
5530
- // W = compose(A, B, C, D);
5531
5536
//
5532
5537
// Then there is no observable difference between
5533
5538
// Z and W, so we might prefer to have them be identical.
Original file line number Diff line number Diff line change
1
+ // module-dual-target-verify.slang
2
+ // Test that a slang-module can retrieve both SPIR-V and DXIL targets independently
3
+ // and one does not affect the other
4
+
5
+ // TEST:SIMPLE(filecheck=CHECK):-multi-module -verify-module-dual-target
6
+
7
+ // First create a module that has both DXIL and SPIRV embedded
8
+ // CHECK: Creating module with both DXIL and SPIRV embedded
9
+
10
+ // Verify both targets are present
11
+ // CHECK: Precompiled blob for target DXIL exists: true
12
+ // CHECK: Precompiled blob for target SPIRV exists: true
13
+
14
+ // Retrieve and check DXIL content
15
+ // CHECK: Retrieved DXIL blob size: {{[1-9][0-9]+}}
16
+
17
+ // Retrieve and check SPIRV content
18
+ // CHECK: Retrieved SPIRV blob size: {{[1-9][0-9]+}}
19
+
20
+ // When retrieving DXIL, SPIRV should remain untouched
21
+ // CHECK: DXIL retrieval does not modify SPIRV blob
22
+
23
+ // When retrieving SPIRV, DXIL should remain untouched
24
+ // CHECK: SPIRV retrieval does not modify DXIL blob
25
+
26
+ // Both blobs should have distinct hash values
27
+ // CHECK-NOT: DXIL hash matches SPIRV hash
28
+ // CHECK: DXIL and SPIRV blobs are separate
You can’t perform that action at this time.
0 commit comments