File tree 2 files changed +4
-4
lines changed
test/CodeGen/SPIRV/debug-info 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ bool SPIRVEmitNonSemanticDI::emitGlobalDI(MachineFunction &MF) {
117
117
118
118
// To correct placement of a OpLabel instruction during SPIRVAsmPrinter
119
119
// emission all new instructions needs to be placed after OpFunction
120
- MachineIRBuilder MIRBuilder (MBB, MBB.end ());
120
+ MachineIRBuilder MIRBuilder (MBB, MBB.getFirstTerminator ());
121
121
122
122
// Emit OpString with FilePath which is required by DebugSource
123
123
const Register StrReg = MRI.createVirtualRegister (&SPIRV::IDRegClass);
Original file line number Diff line number Diff line change 1
- ; RUN: llc --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info --print-after=spirv-nonsemantic-debug-info -O0 -mtriple=spirv64-unknown-unknown %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK-MIR
2
- ; RUN: llc --spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3
- ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info %s -o - | FileCheck %s --check-prefix=CHECK-OPTION
1
+ ; RUN: llc --verify-machineinstrs -- spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info --print-after=spirv-nonsemantic-debug-info -O0 -mtriple=spirv64-unknown-unknown %s -o - 2>&1 | FileCheck %s --check-prefix=CHECK-MIR
2
+ ; RUN: llc --verify-machineinstrs -- spv-emit-nonsemantic-debug-info --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
3
+ ; RUN: llc --verify-machineinstrs - O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_KHR_non_semantic_info %s -o - | FileCheck %s --check-prefix=CHECK-OPTION
4
4
; RUN: %if spirv-tools %{ llc --spirv-ext=+SPV_KHR_non_semantic_info -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
5
5
6
6
; CHECK-MIR-DAG: [[type_void:%[0-9]+\:type]] = OpTypeVoid
You can’t perform that action at this time.
0 commit comments