Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/dbg-value-missing-loc.mir
paperchalice c09ed6a29e [CodeGen][NewPM] Port MachineVerifier to new pass manager (#98628)
- Add `MachineVerifierPass`.
- Use complete `MachineVerifierPass` in `VerifyInstrumentation` if
possible.

`LiveStacksAnalysis` will be added in future, all other analyses are
done.
2024-07-15 12:42:44 +08:00

21 lines
414 B
YAML

# RUN: not --crash llc -run-pass machineverifier -o - %s 2>&1 | FileCheck %s
# RUN: not --crash llc --passes='machine-function(verify)' -o - %s 2>&1 | FileCheck %s
# CHECK: Bad machine code: Missing DebugLoc for debug instruction
# CHECK: - instruction: DBG_VALUE 1, 2, 3, 4
--- |
define i32 @foo() {
entry:
ret i32 0
}
...
---
name: foo
body: |
bb.0.entry:
DBG_VALUE 1, 2, 3, 4
...