diff options
author | Richard Henderson <rth@redhat.com> | 2003-06-05 03:27:03 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2003-06-05 03:27:03 +0000 |
commit | f4b97536ed71fbe05b8b0886d63f5ea2c4c66ae8 (patch) | |
tree | e8c852588d3ba38102c6665c371b868efee661ac /gas/testsuite | |
parent | 8efca6bae5ba97df122dc08b74a2ffb768d46c04 (diff) | |
download | gdb-f4b97536ed71fbe05b8b0886d63f5ea2c4c66ae8.zip gdb-f4b97536ed71fbe05b8b0886d63f5ea2c4c66ae8.tar.gz gdb-f4b97536ed71fbe05b8b0886d63f5ea2c4c66ae8.tar.bz2 |
* config/tc-alpha.c (s_alpha_usepv): New.
(md_pseudo_table): Add it.
(alpha_cfi_frame_initial_instructions): New.
* config/tc-alpha.h (TARGET_USE_CFIPOP): New.
(tc_cfi_frame_initial_instructions): New.
* doc/c-alpha.texi: Document .usepv.
* gas/alpha/elf-usepv-1.[sd]: New.
* gas/alpha/elf-usepv-2.[sd]: New.
* gas/alpha/alpha.exp: Run them.
* gas/cfi/cfi-alpha-3.[sd]: New.
* gas/cfi/cfi.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/alpha/alpha.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/alpha/elf-usepv-1.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/alpha/elf-usepv-1.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/alpha/elf-usepv-2.l | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/alpha/elf-usepv-2.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-alpha-3.d | 32 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi-alpha-3.s | 37 | ||||
-rw-r--r-- | gas/testsuite/gas/cfi/cfi.exp | 1 |
9 files changed, 100 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 82cef6c..70d8fe8 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2003-06-04 Richard Henderson <rth@redhat.com> + + * gas/alpha/elf-usepv-1.[sd]: New. + * gas/alpha/elf-usepv-2.[sd]: New. + * gas/alpha/alpha.exp: Run them. + * gas/cfi/cfi-alpha-3.[sd]: New. + * gas/cfi/cfi.exp: Run it. + 2003-05-31 Richard Henderson <rth@redhat.com> * gas/alpha/elf-reloc-8.d: Correct .eh_frame relocs. diff --git a/gas/testsuite/gas/alpha/alpha.exp b/gas/testsuite/gas/alpha/alpha.exp index 3281dcb..0afcc7c 100644 --- a/gas/testsuite/gas/alpha/alpha.exp +++ b/gas/testsuite/gas/alpha/alpha.exp @@ -34,6 +34,8 @@ if { [istarget alpha*-*-*] } then { run_dump_test "elf-tls-1" run_list_test "elf-tls-2" "" run_list_test "elf-tls-3" "" + run_dump_test "elf-usepv-1" + run_list_test "elf-usepv-2" "" } run_dump_test "fp" diff --git a/gas/testsuite/gas/alpha/elf-usepv-1.d b/gas/testsuite/gas/alpha/elf-usepv-1.d new file mode 100644 index 0000000..ba150be --- /dev/null +++ b/gas/testsuite/gas/alpha/elf-usepv-1.d @@ -0,0 +1,11 @@ +#objdump: --syms +#name: alpha elf-usepv-1 + +.*: file format elf64-alpha + +SYMBOL TABLE: +0*0000000 l d .text 0*0000000 +0*0000000 l d .data 0*0000000 +0*0000000 l d .bss 0*0000000 +0*0000000 l .text 0*0000000 0x80 foo +0*0000004 l .text 0*0000000 0x88 bar diff --git a/gas/testsuite/gas/alpha/elf-usepv-1.s b/gas/testsuite/gas/alpha/elf-usepv-1.s new file mode 100644 index 0000000..0d447aa --- /dev/null +++ b/gas/testsuite/gas/alpha/elf-usepv-1.s @@ -0,0 +1,6 @@ + .usepv foo, no +foo: + nop + .usepv bar, std +bar: + nop diff --git a/gas/testsuite/gas/alpha/elf-usepv-2.l b/gas/testsuite/gas/alpha/elf-usepv-2.l new file mode 100644 index 0000000..35e3b26 --- /dev/null +++ b/gas/testsuite/gas/alpha/elf-usepv-2.l @@ -0,0 +1,2 @@ +.*: Assembler messages: +.*:1: Error: unknown argument for .usepv diff --git a/gas/testsuite/gas/alpha/elf-usepv-2.s b/gas/testsuite/gas/alpha/elf-usepv-2.s new file mode 100644 index 0000000..5a583f9 --- /dev/null +++ b/gas/testsuite/gas/alpha/elf-usepv-2.s @@ -0,0 +1 @@ + .usepv foo, bar diff --git a/gas/testsuite/gas/cfi/cfi-alpha-3.d b/gas/testsuite/gas/cfi/cfi-alpha-3.d new file mode 100644 index 0000000..b0c7d03 --- /dev/null +++ b/gas/testsuite/gas/cfi/cfi-alpha-3.d @@ -0,0 +1,32 @@ +#readelf: -wf +#name: CFI on alpha, 3 +The section .eh_frame contains: + +00000000 00000010 00000000 CIE + Version: 1 + Augmentation: "zR" + Code alignment factor: 4 + Data alignment factor: -8 + Return address column: 26 + Augmentation data: 1b + + DW_CFA_def_cfa_reg: r30 + DW_CFA_nop + +00000014 00000024 00000018 FDE cie=00000000 pc=0000001c..0000005c + DW_CFA_advance_loc: 4 to 00000020 + DW_CFA_def_cfa_offset: 32 + DW_CFA_advance_loc: 4 to 00000024 + DW_CFA_offset: r26 at cfa-32 + DW_CFA_advance_loc: 4 to 00000028 + DW_CFA_offset: r9 at cfa-24 + DW_CFA_advance_loc: 4 to 0000002c + DW_CFA_offset: r15 at cfa-16 + DW_CFA_advance_loc: 4 to 00000030 + DW_CFA_offset: r34 at cfa-8 + DW_CFA_advance_loc: 4 to 00000034 + DW_CFA_def_cfa_reg: r15 + DW_CFA_advance_loc: 36 to 00000058 + DW_CFA_def_cfa: r30 ofs 0 + DW_CFA_nop + diff --git a/gas/testsuite/gas/cfi/cfi-alpha-3.s b/gas/testsuite/gas/cfi/cfi-alpha-3.s new file mode 100644 index 0000000..a4ff135 --- /dev/null +++ b/gas/testsuite/gas/cfi/cfi-alpha-3.s @@ -0,0 +1,37 @@ + .file 1 "z.c" + .set noat + .set noreorder +.text + .align 4 + .globl f + .type f,@function + .usepv f,no + .cfi_startproc +f: + lda $30,-32($30) + .cfi_adjust_cfa_offset 32 + stq $26,0($30) + .cfi_offset $26, -32 + stq $9,8($30) + .cfi_offset $9, -24 + stq $15,16($30) + .cfi_offset $15, -16 + stt $f2,24($30) + .cfi_offset $f2, -8 + mov $30,$15 + .cfi_def_cfa_register $15 + + nop + nop + nop + + mov $15,$30 + ldq $26,0($30) + ldq $9,8($30) + ldt $f2,24($30) + ldq $15,16($30) + lda $30,32($30) + .cfi_def_cfa $30, 0 + ret $31,($26),1 + .size f, .-f + .cfi_endproc diff --git a/gas/testsuite/gas/cfi/cfi.exp b/gas/testsuite/gas/cfi/cfi.exp index b6acaad..0c24682 100644 --- a/gas/testsuite/gas/cfi/cfi.exp +++ b/gas/testsuite/gas/cfi/cfi.exp @@ -16,5 +16,6 @@ if { [istarget alpha*-*-*] } then { if $elf { run_dump_test "cfi-alpha-1" run_dump_test "cfi-alpha-2" + run_dump_test "cfi-alpha-3" } } |