Skip to content

Commit

Permalink
RISC-V: Test DWARF register number for "fp"
Browse files Browse the repository at this point in the history
This commit adds "fp" (x8 or s0) to dw-regnums.{s,d}.

gas/ChangeLog:

	* testsuite/gas/riscv/dw-regnums.s: Add "fp".
	* testsuite/gas/riscv/dw-regnums.d: Likewise.
  • Loading branch information
a4lg committed Oct 14, 2022
1 parent cda4092 commit 58eb738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions gas/testsuite/gas/riscv/dw-regnums.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Contents of the .* section:
DW_CFA_offset_extended_sf: r29 \(t4\) at cfa\+120
DW_CFA_offset_extended_sf: r30 \(t5\) at cfa\+124
DW_CFA_offset_extended_sf: r31 \(t6\) at cfa\+128
DW_CFA_offset_extended_sf: r8 \(s0\) at cfa\+36
DW_CFA_offset_extended_sf: r0 \(zero\) at cfa\+4
DW_CFA_offset_extended_sf: r1 \(ra\) at cfa\+8
DW_CFA_offset_extended_sf: r2 \(sp\) at cfa\+12
Expand Down
3 changes: 3 additions & 0 deletions gas/testsuite/gas/riscv/dw-regnums.s
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ _start:
.cfi_offset t5, 124
.cfi_offset t6, 128

# GPR (ABI alias)
.cfi_offset fp, 36

# GPRs (Numeric)
.cfi_offset x0, 4
.cfi_offset x1, 8
Expand Down

0 comments on commit 58eb738

Please sign in to comment.