Skip to content

Commit

Permalink
[LLVM] Remove wrong DBG_VALUE instruction with one operand in AArch64…
Browse files Browse the repository at this point in the history
… test case

Summary:
AArch64 test case llvm/test/CodeGen/AArch64/branch-target-enforcement.mir is checking for invalid  DBG_VALUE instruction with one operand(`DBG_VALUE $lr`). And this DBG_VALUE instruction is echoed from test case it self only.

Correct format of DBG_VALUE is given in below link:
https://llvm.org/docs/SourceLevelDebugging.html#variable-locations-in-instruction-selection-and-mir

Reviewers: dsanders, eli.friedman, jmorse, vsk

Reviewed By: dsanders

Subscribers: kristof.beyls, danielkiss, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78309
  • Loading branch information
Jac1494 authored and dsandersllvm committed Apr 16, 2020
1 parent 9490808 commit 561cb14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llvm/test/CodeGen/AArch64/branch-target-enforcement.mir
Expand Up @@ -340,11 +340,9 @@ body: |
; CHECK-LABEL: name: debug_ptr_auth
; CHECK-NOT: HINT
; CHECK: DBG_VALUE
; CHECK: frame-setup PACIASP
; CHECK-NOT: HINT
; CHECK: RETAA
DBG_VALUE $lr
frame-setup PACIASP implicit-def $lr, implicit killed $lr, implicit $sp
frame-setup CFI_INSTRUCTION negate_ra_sign_state
early-clobber $sp = frame-setup STRXpre killed $lr, $sp, -16 :: (store 8 into %stack.0)
Expand Down

0 comments on commit 561cb14

Please sign in to comment.