diff options
Diffstat (limited to 'binutils-2.17/gas/testsuite/gas/cfi')
41 files changed, 0 insertions, 1325 deletions
diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.d deleted file mode 100644 index 4b3a3409..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.d +++ /dev/null @@ -1,29 +0,0 @@ -#readelf: -wf -#name: CFI on alpha -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 00000020 00000018 FDE cie=00000000 pc=00000000..00000034 - DW_CFA_advance_loc: 24 to 00000018 - DW_CFA_def_cfa: r15 ofs 32 - DW_CFA_offset: r26 at cfa-32 - DW_CFA_offset: r9 at cfa-24 - DW_CFA_offset: r15 at cfa-16 - DW_CFA_offset: r34 at cfa-8 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.s deleted file mode 100644 index 34e28ce8..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-1.s +++ /dev/null @@ -1,28 +0,0 @@ - .file 1 "z.c" - .set noat - .set noreorder -.text - .align 4 - .globl f - .ent f -$f..ng: -f: - .frame $15,32,$26,0 - .mask 0x4008200,-32 - .fmask 0x4,-8 - lda $30,-32($30) - stq $26,0($30) - stq $9,8($30) - stq $15,16($30) - stt $f2,24($30) - mov $30,$15 - .prologue 0 - mov $15,$30 - ldq $26,0($30) - ldq $9,8($30) - ldt $f2,24($30) - ldq $15,16($30) - lda $30,32($30) - ret $31,($26),1 - .end f - .ident "GCC: (GNU) 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.1)" diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.d deleted file mode 100644 index 4a87da2d..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.d +++ /dev/null @@ -1,9 +0,0 @@ -#objdump: -r -j .eh_frame -#name: CFI on alpha, 2 - -.*: file format elf64-alpha - -RELOCATION RECORDS FOR \[\.eh_frame\]: -OFFSET TYPE VALUE -0*000001c SREL32 \.text -0*0000030 SREL32 \.text\+0x0*0000004 diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.s deleted file mode 100644 index 56b22e81..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-2.s +++ /dev/null @@ -1,14 +0,0 @@ - .text - .ent foo -foo: - .frame $30, 0, $26, 0 - .prologue 1 - ret - .end foo - - .ent bar -bar: - .frame $30, 0, $26, 0 - .prologue 1 - ret - .end bar diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.d deleted file mode 100644 index f7bb8f0a..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.d +++ /dev/null @@ -1,36 +0,0 @@ -#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 00000028 00000018 FDE cie=00000000 pc=00000000..00000040 - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_offset: 32 - DW_CFA_advance_loc: 4 to 00000008 - DW_CFA_offset: r26 at cfa-32 - DW_CFA_advance_loc: 4 to 0000000c - DW_CFA_offset: r9 at cfa-24 - DW_CFA_advance_loc: 4 to 00000010 - DW_CFA_offset: r15 at cfa-16 - DW_CFA_advance_loc: 4 to 00000014 - DW_CFA_offset: r34 at cfa-8 - DW_CFA_advance_loc: 4 to 00000018 - DW_CFA_def_cfa_reg: r15 - DW_CFA_advance_loc: 36 to 0000003c - DW_CFA_def_cfa: r30 ofs 0 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.s deleted file mode 100644 index a4ff1357..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-alpha-3.s +++ /dev/null @@ -1,37 +0,0 @@ - .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/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.d deleted file mode 100644 index 8474e20b..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.d +++ /dev/null @@ -1,27 +0,0 @@ -#readelf: -wf -#name: CFI on ARM - -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 2 - Data alignment factor: -4 - Return address column: 14 - Augmentation data: 1b - - DW_CFA_def_cfa: r13 ofs 0 - -00000014 00000020 00000018 FDE cie=00000000 pc=00000000..00000018 - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa: r12 ofs 0 - DW_CFA_advance_loc: 4 to 00000008 - DW_CFA_def_cfa: r13 ofs 16 - DW_CFA_advance_loc: 4 to 0000000c - DW_CFA_def_cfa_offset: 32 - DW_CFA_offset: r11 at cfa-32 - DW_CFA_offset: r14 at cfa-24 - DW_CFA_advance_loc: 4 to 00000010 - DW_CFA_def_cfa: r11 ofs 16 - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.s deleted file mode 100644 index 8c9d9176..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-arm-1.s +++ /dev/null @@ -1,23 +0,0 @@ -#; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o - - .file "a.c" - .text - .align 2 - .global foo - .type foo, %function -foo: - .cfi_startproc - mov ip, sp - .cfi_def_cfa ip, 0 - stmfd sp!, {r0, r1, r2, r3} - .cfi_def_cfa sp, 16 - stmfd sp!, {fp, ip, lr, pc} - .cfi_adjust_cfa_offset 16 - .cfi_rel_offset r11, 0 - .cfi_rel_offset lr, 8 - sub fp, ip, #20 - .cfi_def_cfa fp, 16 - nop - ldmea fp, {fp, sp, pc} - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.d deleted file mode 100644 index 9f5d9932..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.d +++ /dev/null @@ -1,23 +0,0 @@ -#readelf: -wf -#name: CFI common 1 -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: .* - Data alignment factor: .* - Return address column: .* - Augmentation data: [01]b - - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -00000014 00000018 00000018 FDE cie=00000000 pc=.* - DW_CFA_advance_loc: 4 to .* - DW_CFA_def_cfa: r0 ofs 16 - DW_CFA_offset: r1 at cfa-8 - DW_CFA_advance_loc: 4 to .* - DW_CFA_def_cfa_offset: 32 - DW_CFA_offset: r2 at cfa-24 diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.s deleted file mode 100644 index 72db279e..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-1.s +++ /dev/null @@ -1,8 +0,0 @@ - .cfi_startproc simple - .long 0 - .cfi_def_cfa 0, 16 - .cfi_rel_offset 1, 8 - .long 0 - .cfi_adjust_cfa_offset 16 - .cfi_rel_offset 2, 8 - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.d deleted file mode 100644 index a54e542c..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.d +++ /dev/null @@ -1,24 +0,0 @@ -#readelf: -wf -#name: CFI common 2 -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: .* - Data alignment factor: .* - Return address column: .* - Augmentation data: [01]b -#... -00000014 000000[12][c0] 00000018 FDE cie=00000000 pc=.* - DW_CFA_advance_loc: 4 to .* - DW_CFA_def_cfa: r0 ofs 16 - DW_CFA_advance_loc: 4 to .* - DW_CFA_remember_state - DW_CFA_advance_loc: 4 to .* - DW_CFA_def_cfa_offset: 0 - DW_CFA_advance_loc: 4 to .* - DW_CFA_restore_state - DW_CFA_advance_loc: 4 to .* - DW_CFA_def_cfa_offset: 0 -#pass diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.s deleted file mode 100644 index e2a94430..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-2.s +++ /dev/null @@ -1,12 +0,0 @@ - .cfi_startproc simple - .long 0 - .cfi_def_cfa 0, 16 - .long 0 - .cfi_remember_state - .long 0 - .cfi_adjust_cfa_offset -16 - .long 0 - .cfi_restore_state - .long 0 - .cfi_adjust_cfa_offset -16 - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.d deleted file mode 100644 index 70055aa0..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.d +++ /dev/null @@ -1,17 +0,0 @@ -#readelf: -wf -#name: CFI common 3 -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: .* - Data alignment factor: .* - Return address column: .* - Augmentation data: [01]b -#... -00000014 00000010 00000018 FDE cie=00000000 pc=.* - DW_CFA_advance_loc: 4 to .* - DW_CFA_remember_state - DW_CFA_restore_state -#pass diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.s deleted file mode 100644 index d1282d10..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-3.s +++ /dev/null @@ -1,4 +0,0 @@ - .cfi_startproc simple - .long 0 - .cfi_escape 10, 11 - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.d deleted file mode 100644 index 9d652702..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.d +++ /dev/null @@ -1,20 +0,0 @@ -#readelf: -wf -#name: CFI common 4 -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: .* - Data alignment factor: .* - Return address column: .* - Augmentation data: [01]b -#... -00000014 00000010 00000018 FDE cie=00000000 pc=.* - DW_CFA_remember_state - DW_CFA_restore_state -#... -00000028 0000001[04] 0000002c FDE cie=00000000 pc=.* - DW_CFA_remember_state - DW_CFA_restore_state -#pass diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.s deleted file mode 100644 index 1851529e..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-common-4.s +++ /dev/null @@ -1,9 +0,0 @@ - .cfi_startproc simple - .cfi_remember_state - .cfi_restore_state - .cfi_endproc - - .cfi_startproc simple - .cfi_remember_state - .cfi_restore_state - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.l b/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.l deleted file mode 100644 index 3dc8a615..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.l +++ /dev/null @@ -1,2 +0,0 @@ -.*: Assembler messages: -.*:2: Error: register save offset not a multiple of .* diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.s deleted file mode 100644 index de0f8654..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-diag-1.s +++ /dev/null @@ -1,3 +0,0 @@ - .cfi_startproc - .cfi_offset 0, 1 - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.d deleted file mode 100644 index a42e0889..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.d +++ /dev/null @@ -1,26 +0,0 @@ -#readelf: -wf -#name: CFI on i386, 2 -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -4 - Return address column: 8 - Augmentation data: 1b - - DW_CFA_def_cfa: r4 ofs 4 - DW_CFA_offset: r8 at cfa-4 - DW_CFA_nop - DW_CFA_nop - -00000018 00000018 0000001c FDE cie=00000000 pc=00000020..00000029 - DW_CFA_advance_loc: 1 to 00000021 - DW_CFA_def_cfa_offset: 8 - DW_CFA_offset: r5 at cfa-8 - DW_CFA_advance_loc: 4 to 00000025 - DW_CFA_offset: r3 at cfa-12 - DW_CFA_def_cfa_offset: 12 - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.s deleted file mode 100644 index 811220b5..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386-2.s +++ /dev/null @@ -1,17 +0,0 @@ - .text - .globl foo - .type foo,@function - .cfi_startproc -foo: - push %ebp - .cfi_adjust_cfa_offset 4 - .cfi_offset %ebp, -8 - .align 4 - push %ebx - .cfi_offset %ebx, -12 - .cfi_adjust_cfa_offset 4 - nop - pop %ebx - pop %ebp - ret - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.d deleted file mode 100644 index ff747803..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.d +++ /dev/null @@ -1,48 +0,0 @@ -#readelf: -wf -#name: CFI on i386 -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -4 - Return address column: 8 - Augmentation data: 1b - - DW_CFA_def_cfa: r4 ofs 4 - DW_CFA_offset: r8 at cfa-4 - DW_CFA_nop - DW_CFA_nop - -00000018 00000014 0000001c FDE cie=00000000 pc=00000000..00000012 - DW_CFA_advance_loc: 6 to 00000006 - DW_CFA_def_cfa_offset: 4664 - DW_CFA_advance_loc: 11 to 00000011 - DW_CFA_def_cfa_offset: 4 - -00000030 00000018 00000034 FDE cie=00000000 pc=00000012..0000001f - DW_CFA_advance_loc: 1 to 00000013 - DW_CFA_def_cfa_offset: 8 - DW_CFA_offset: r5 at cfa-8 - DW_CFA_advance_loc: 2 to 00000015 - DW_CFA_def_cfa_reg: r5 - DW_CFA_advance_loc: 9 to 0000001e - DW_CFA_def_cfa_reg: r4 - -0000004c 00000014 00000050 FDE cie=00000000 pc=0000001f..0000002f - DW_CFA_advance_loc: 2 to 00000021 - DW_CFA_def_cfa_reg: r3 - DW_CFA_advance_loc: 13 to 0000002e - DW_CFA_def_cfa: r4 ofs 4 - -00000064 00000010 00000068 FDE cie=00000000 pc=0000002f..00000035 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -00000078 00000010 0000007c FDE cie=00000000 pc=00000035..00000044 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.s deleted file mode 100644 index afaafabd..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-i386.s +++ /dev/null @@ -1,107 +0,0 @@ -#; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o - - .text - -#; func_locvars -#; - function with a space on the stack -#; allocated for local variables - - .type func_locvars,@function -func_locvars: - .cfi_startproc - - #; alocate space for local vars - sub $0x1234,%esp - .cfi_adjust_cfa_offset 0x1234 - - #; dummy body - movl $1,%eax - - #; release space of local vars and return - add $0x1234,%esp - .cfi_adjust_cfa_offset -0x1234 - ret - .cfi_endproc - -#; func_prologue -#; - functions that begins with standard -#; prologue: "pushq %rbp; movq %rsp,%rbp" - - .type func_prologue,@function -func_prologue: - .cfi_startproc - - #; prologue, CFI is valid after - #; each instruction. - pushl %ebp - .cfi_def_cfa_offset 8 - .cfi_offset ebp,-8 - movl %esp, %ebp - .cfi_def_cfa_register ebp - - #; function body - call func_locvars - addl $3, %eax - - #; epilogue with valid CFI - #; (we're better than gcc :-) - leave - .cfi_def_cfa_register esp - ret - .cfi_endproc - -#; func_otherreg -#; - function that moves frame pointer to -#; another register (r12) and then allocates -#; a space for local variables - - .type func_otherreg,@function -func_otherreg: - .cfi_startproc - - #; save frame pointer to ebx - mov %esp,%ebx - .cfi_def_cfa_register ebx - - #; alocate space for local vars - #; (no .cfi_{def,adjust}_cfa_offset here, - #; because CFA is computed from r12!) - sub $100,%esp - - #; function body - call func_prologue - add $2, %eax - - #; restore frame pointer from r12 - mov %ebx,%esp - .cfi_def_cfa esp,4 - ret - .cfi_endproc - -#; main -#; - typical function - .type main,@function -main: - .cfi_startproc - - #; only function body that doesn't - #; touch the stack at all. - call func_otherreg - - #; return - ret - .cfi_endproc - -#; _start -#; - standard entry point - - .type _start,@function - .globl _start -_start: - .cfi_startproc - call main - movl %eax,%edi - movl $0x1,%eax - int $0x80 - hlt - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.d deleted file mode 100644 index 7aeb542e..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.d +++ /dev/null @@ -1,38 +0,0 @@ -#readelf: -wf -#name: CFI on m68k -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 2 - Data alignment factor: -4 - Return address column: 24 - Augmentation data: 1b - - DW_CFA_def_cfa: r15 ofs 4 - DW_CFA_offset: r24 at cfa-4 - DW_CFA_nop - DW_CFA_nop - -00000018 00000014 0000001c FDE cie=00000000 pc=00000000..0000000c - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_offset: 4664 - DW_CFA_advance_loc: 6 to 0000000a - DW_CFA_def_cfa_offset: 4 - -00000030 00000018 00000034 FDE cie=00000000 pc=0000000c..00000018 - DW_CFA_advance_loc: 4 to 00000010 - DW_CFA_def_cfa_offset: 8 - DW_CFA_offset: r14 at cfa-8 - DW_CFA_def_cfa_reg: r14 - DW_CFA_advance_loc: 6 to 00000016 - DW_CFA_def_cfa_reg: r15 - DW_CFA_nop - -0000004c 00000010 00000050 FDE cie=00000000 pc=00000018..0000001c - - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.s deleted file mode 100644 index 6bf0cb2b..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-m68k.s +++ /dev/null @@ -1,64 +0,0 @@ -#; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o - - .text - -#; func_locvars -#; - function with a space on the stack -#; allocated for local variables - - .type func_locvars,@function -func_locvars: - .cfi_startproc - - #; alocate space for local vars - suba.w #0x1234,%sp - .cfi_adjust_cfa_offset 0x1234 - - #; dummy body - moveq.l #1,%d0 - - #; release space of local vars and return - adda.w #0x1234,%sp - .cfi_adjust_cfa_offset -0x1234 - rts - .cfi_endproc - -#; func_prologue -#; - functions that begins with standard -#; prologue: "link %a6,#0" - - .type func_prologue,@function -func_prologue: - .cfi_startproc - - #; prologue, CFI is valid after - #; each instruction. - link %a6,#0 - .cfi_def_cfa_offset 8 - .cfi_offset a6,-8 - .cfi_def_cfa_register a6 - - #; function body - jbsr func_locvars - addq.l #3, %d0 - - #; epilogue with valid CFI - #; (we're better than gcc :-) - unlk %a6 - .cfi_def_cfa_register sp - rts - .cfi_endproc - -#; main -#; - typical function - .type main,@function -main: - .cfi_startproc - - #; only function body that doesn't - #; touch the stack at all. - jbsr func_prologue - - #; return - rts - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.d deleted file mode 100644 index 7a8d8e8b..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.d +++ /dev/null @@ -1,27 +0,0 @@ -#readelf: -wf -#name: CFI on mips, 1 -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -4 - Return address column: 31 - Augmentation data: 0b - - DW_CFA_def_cfa_reg: r29 - DW_CFA_def_cfa: r29 ofs 0 - DW_CFA_nop - DW_CFA_nop - -00000018 0000001c 0000001c FDE cie=00000000 pc=00000000..0000002c - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_offset: 8 - DW_CFA_advance_loc: 4 to 00000008 - DW_CFA_offset: r30 at cfa-8 - DW_CFA_advance_loc: 4 to 0000000c - DW_CFA_def_cfa: r30 ofs 8 - DW_CFA_advance_loc: 24 to 00000024 - DW_CFA_def_cfa: r29 ofs 0 - DW_CFA_nop diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.s deleted file mode 100644 index cf7d5e2f..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-mips-1.s +++ /dev/null @@ -1,39 +0,0 @@ - .file 1 "foo.c" - .section .mdebug.abi64 - .previous - .text - .align 2 - .globl foo - .ent foo - .cfi_startproc -foo: - .frame $fp,8,$31 # vars= 8, regs= 1/0, args= 0, gp= 0 - .mask 0x40000000,-8 - .fmask 0x00000000,0 - .set noreorder - .set nomacro - - .cfi_def_cfa $sp, 0 - addiu $sp,$sp,-8 - .cfi_adjust_cfa_offset 8 - sw $fp,0($sp) - .cfi_offset $30, -8 - move $fp,$sp - .cfi_def_cfa $fp, 8 - - nop - nop - nop - - move $sp,$fp - lw $fp,0($sp) - addiu $sp,$sp,8 - .cfi_def_cfa $sp, 0 - j $31 - nop - .set macro - .set reorder - .end foo - .cfi_endproc - .size foo, .-foo - .ident "GCC: (GNU) 4.0.0 20041226 (experimental)" diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.d deleted file mode 100644 index cb1f55e1..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.d +++ /dev/null @@ -1,30 +0,0 @@ -#readelf: -wf -#name: CFI on ppc -#as: -a32 - -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 4 - Data alignment factor: -4 - Return address column: 65 - Augmentation data: 1b - - DW_CFA_def_cfa: r1 ofs 0 - -00000014 00000020 00000018 FDE cie=00000000 pc=00000000..00000070 - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_offset: 48 - DW_CFA_advance_loc: 16 to 00000014 - DW_CFA_offset: r27 at cfa-20 - DW_CFA_offset: r26 at cfa-24 - DW_CFA_offset_extended_sf: r65 at cfa\+4 - DW_CFA_advance_loc: 8 to 0000001c - DW_CFA_offset: r28 at cfa-16 - DW_CFA_advance_loc: 8 to 00000024 - DW_CFA_offset: r29 at cfa-12 - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.s deleted file mode 100644 index e4b41cdd..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-ppc-1.s +++ /dev/null @@ -1,45 +0,0 @@ -#; $ as -o test.o -a32 gas-cfi-test.s && gcc -nostdlib -o test test.o - - .file "a.c" - .text - .align 2 - .globl foo - .type foo, @function -foo: - .cfi_startproc - stwu 1,-48(1) - .cfi_adjust_cfa_offset 48 - mflr 0 - stw 0,52(1) - stw 26,24(1) - stw 27,28(1) - .cfi_offset 27,-20 - .cfi_offset %r26,-24 - .cfi_offset lr,4 - mr 27,5 - stw 28,32(1) - .cfi_offset %r.28,-16 - mr 28,4 - stw 29,36(1) - .cfi_offset 29,-12 - mr 29,3 - bl bar1 - mr 5,27 - mr 26,3 - mr 4,28 - mr 3,29 - bl syscall - mr 29,3 - mr 3,26 - bl bar2 - lwz 28,32(1) - lwz 0,52(1) - mr 3,29 - lwz 26,24(1) - lwz 27,28(1) - mtlr 0 - lwz 29,36(1) - addi 1,1,48 - blr - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.d deleted file mode 100644 index 5cf36945..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.d +++ /dev/null @@ -1,31 +0,0 @@ -#readelf: -wf -#name: CFI on s390 -#as: -m31 -march=g5 - -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -4 - Return address column: 14 - Augmentation data: 1b - - DW_CFA_def_cfa: r15 ofs 96 - -00000014 00000024 00000018 FDE cie=00000000 pc=00000000..0000004e - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_offset: r15 at cfa-36 - DW_CFA_offset: r14 at cfa-40 - DW_CFA_offset: r13 at cfa-44 - DW_CFA_offset: r12 at cfa-48 - DW_CFA_offset: r11 at cfa-52 - DW_CFA_offset: r10 at cfa-56 - DW_CFA_offset: r9 at cfa-60 - DW_CFA_offset: r8 at cfa-64 - DW_CFA_advance_loc: 22 to 0000001a - DW_CFA_def_cfa_offset: 192 - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.s deleted file mode 100644 index 45f9c1bb..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390-1.s +++ /dev/null @@ -1,54 +0,0 @@ -#; $ as -o test.o -m31 -march=g5 gas-cfi-test.s && gcc -m32 -nostdlib -o test test.o - - .file "a.c" - .text - .align 4 - .globl foo - .type foo, @function -foo: - .cfi_startproc - stm %r8,%r15,32(%r15) - .cfi_offset %r15,-36 - .cfi_offset %r14,-40 - .cfi_offset %r13,-44 - .cfi_offset %r12,-48 - .cfi_offset %r11,-52 - .cfi_offset %r10,-56 - .cfi_offset %r9,-60 - .cfi_offset %r8,-64 - bras %r13,.L3 -.L2: - .align 4 -.LC0: - .long bar1 -.LC1: - .long syscall -.LC2: - .long bar2 - .align 2 -.L3: - lr %r14,%r15 - ahi %r15,-96 - .cfi_adjust_cfa_offset 96 - lr %r12,%r2 - l %r2,.LC0-.L2(%r13) - lr %r10,%r3 - lr %r9,%r4 - st %r14,0(%r15) - basr %r14,%r2 - l %r1,.LC1-.L2(%r13) - lr %r4,%r9 - lr %r8,%r2 - lr %r3,%r10 - lr %r2,%r12 - basr %r14,%r1 - l %r1,.LC2-.L2(%r13) - lr %r12,%r2 - lr %r2,%r8 - basr %r14,%r1 - lr %r2,%r12 - l %r4,152(%r15) - lm %r8,%r15,128(%r15) - br %r4 - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.d deleted file mode 100644 index c515f38d..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.d +++ /dev/null @@ -1,34 +0,0 @@ -#readelf: -wf -#name: CFI on s390x -#as: -m64 -march=z900 - -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -8 - Return address column: 14 - Augmentation data: 1b - - DW_CFA_def_cfa: r15 ofs 160 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -00000018 00000024 0000001c FDE cie=00000000 pc=00000000..00000070 - DW_CFA_advance_loc: 6 to 00000006 - DW_CFA_offset: r15 at cfa-40 - DW_CFA_offset: r14 at cfa-48 - DW_CFA_offset: r13 at cfa-56 - DW_CFA_offset: r12 at cfa-64 - DW_CFA_offset: r11 at cfa-72 - DW_CFA_offset: r10 at cfa-80 - DW_CFA_offset: r9 at cfa-88 - DW_CFA_offset: r8 at cfa-96 - DW_CFA_advance_loc: 8 to 0000000e - DW_CFA_def_cfa_offset: 320 - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.s deleted file mode 100644 index 77812293..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-s390x-1.s +++ /dev/null @@ -1,45 +0,0 @@ -#; $ as -o test.o -m64 -march=z900 gas-cfi-test.s && gcc -m64 -nostdlib -o test test.o - - .file "a.c" - .text - .align 4 - .globl foo - .type foo, @function -foo: - .cfi_startproc - stmg %r8,%r15,64(%r15) - .cfi_offset %r15,-40 - .cfi_offset %r14,-48 - .cfi_offset %r13,-56 - .cfi_offset %r12,-64 - .cfi_offset %r11,-72 - .cfi_offset %r10,-80 - .cfi_offset %r9,-88 - .cfi_offset %r8,-96 - lgr %r14,%r15 - aghi %r15,-160 - .cfi_adjust_cfa_offset 160 - lgr %r12,%r3 - lgr %r10,%r4 - lgr %r9,%r2 - lgfr %r9,%r9 - stg %r14,0(%r15) - brasl %r14,bar1 - lgfr %r12,%r12 - lgfr %r10,%r10 - lgr %r3,%r12 - lgr %r4,%r10 - lgr %r8,%r2 - lgr %r2,%r9 - brasl %r14,syscall - lgfr %r8,%r8 - lgr %r12,%r2 - lgr %r2,%r8 - brasl %r14,bar2 - lgfr %r12,%r12 - lgr %r2,%r12 - lg %r4,272(%r15) - lmg %r8,%r15,224(%r15) - br %r4 - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.d deleted file mode 100644 index bfbfcfad..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.d +++ /dev/null @@ -1,29 +0,0 @@ -#readelf: -wf -#name: CFI on SH -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 2 - Data alignment factor: -4 - Return address column: 17 - Augmentation data: 1b - - DW_CFA_def_cfa: r15 ofs 0 - -00000014 00000020 00000018 FDE cie=00000000 pc=00000000..0000002c - DW_CFA_advance_loc: 2 to 00000002 - DW_CFA_def_cfa_offset: 4 - DW_CFA_advance_loc: 2 to 00000004 - DW_CFA_def_cfa_offset: 8 - DW_CFA_offset: r15 at cfa-4 - DW_CFA_offset: r17 at cfa-8 - DW_CFA_advance_loc: 6 to 0000000a - DW_CFA_def_cfa_reg: r14 - DW_CFA_advance_loc: 2 to 0000000c - DW_CFA_def_cfa_offset: 40 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.s deleted file mode 100644 index 29fc63e7..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sh-1.s +++ /dev/null @@ -1,39 +0,0 @@ - .file "a.c" - .text - .align 1 - .globl foo - .type foo, @function -foo: - .cfi_startproc - mov.l r14,@-r15 - .cfi_adjust_cfa_offset 4 - sts.l pr,@-r15 - .cfi_adjust_cfa_offset 4 - .cfi_offset r15,-4 - .cfi_offset pr,-8 - tst r4,r4 - bt/s .L2 - mov r15,r14 - .cfi_def_cfa_register r14 - add #-32,r15 - .cfi_adjust_cfa_offset 32 - mov.l .L3,r0 - jsr @r0 - mov r15,r4 -.L2: - mov.l .L4,r0 - jsr @r0 - nop - mov #0,r0 - mov r14,r15 - lds.l @r15+,pr - rts - mov.l @r15+,r14 -.L5: - .align 2 -.L3: - .long bar -.L4: - .long baz - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.d deleted file mode 100644 index c9d855a3..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.d +++ /dev/null @@ -1,22 +0,0 @@ -#readelf: -wf -#name: CFI on SPARC 32-bit -#as: -32 - -The section .eh_frame contains: - -00000000 00000010 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 4 - Data alignment factor: -4 - Return address column: 15 - Augmentation data: 1b - - DW_CFA_def_cfa: r14 ofs 0 - -00000014 00000014 00000018 FDE cie=00000000 pc=00000000..00000024 - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_reg: r30 - DW_CFA_GNU_window_save - DW_CFA_register: r15 in r31 - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.s deleted file mode 100644 index a88ac7f7..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc-1.s +++ /dev/null @@ -1,23 +0,0 @@ -#; $ as -o test.o -32 gas-cfi-test.s && gcc -m32 -nostdlib -o test test.o - - .file "a.c" - .text - .align 4 - .globl foo - .type foo, @function -foo: - .cfi_startproc - save %sp, -104, %sp - .cfi_def_cfa_register %fp - .cfi_window_save - .cfi_register %o7, %i7 - add %i0, 1, %o0 - call bar, 0 - add %i0, 2, %i0 - call bar, 0 - mov %i0, %o0 - add %o0, 3, %o0 - ret - restore %g0, %o0, %o0 - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.d deleted file mode 100644 index 6206e391..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.d +++ /dev/null @@ -1,25 +0,0 @@ -#readelf: -wf -#name: CFI on SPARC 64-bit -#as: -64 - -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 4 - Data alignment factor: -8 - Return address column: 15 - Augmentation data: 1b - - DW_CFA_def_cfa: r14 ofs 2047 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -00000018 00000014 0000001c FDE cie=00000000 pc=00000000..00000030 - DW_CFA_advance_loc: 4 to 00000004 - DW_CFA_def_cfa_reg: r30 - DW_CFA_GNU_window_save - DW_CFA_register: r15 in r31 - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.s deleted file mode 100644 index acbe32b6..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-sparc64-1.s +++ /dev/null @@ -1,26 +0,0 @@ -#; $ as -o test.o -64 gas-cfi-test.s && gcc -m64 -nostdlib -o test test.o - - .file "a.c" - .text - .align 4 - .globl foo - .type foo, @function -foo: - .cfi_startproc - save %sp, -192, %sp - .cfi_def_cfa_register %fp - .cfi_window_save - .cfi_register %o7, %i7 - add %i0, 1, %o0 - add %i0, 2, %i0 - call bar, 0 - sra %o0, 0, %o0 - sra %i0, 0, %i0 - call bar, 0 - mov %i0, %o0 - add %o0, 3, %o0 - sra %o0, 0, %o0 - ret - restore %g0, %o0, %o0 - .cfi_endproc - .size foo, .-foo diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.d b/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.d deleted file mode 100644 index f3464354..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.d +++ /dev/null @@ -1,52 +0,0 @@ -#readelf: -wf -#name: CFI on x86-64 -The section .eh_frame contains: - -00000000 00000014 00000000 CIE - Version: 1 - Augmentation: "zR" - Code alignment factor: 1 - Data alignment factor: -8 - Return address column: 16 - Augmentation data: 1b - - DW_CFA_def_cfa: r7 ofs 8 - DW_CFA_offset: r16 at cfa-8 - DW_CFA_nop - DW_CFA_nop - -00000018 00000014 0000001c FDE cie=00000000 pc=00000000..00000014 - DW_CFA_advance_loc: 7 to 00000007 - DW_CFA_def_cfa_offset: 4668 - DW_CFA_advance_loc: 12 to 00000013 - DW_CFA_def_cfa_offset: 8 - -00000030 0000001c 00000034 FDE cie=00000000 pc=00000014..00000022 - DW_CFA_advance_loc: 1 to 00000015 - DW_CFA_def_cfa_offset: 16 - DW_CFA_offset: r6 at cfa-16 - DW_CFA_advance_loc: 3 to 00000018 - DW_CFA_def_cfa_reg: r6 - DW_CFA_advance_loc: 9 to 00000021 - DW_CFA_def_cfa: r7 ofs 8 - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -00000050 00000014 00000054 FDE cie=00000000 pc=00000022..00000035 - DW_CFA_advance_loc: 3 to 00000025 - DW_CFA_def_cfa_reg: r12 - DW_CFA_advance_loc: 15 to 00000034 - DW_CFA_def_cfa_reg: r7 - DW_CFA_nop - -00000068 00000010 0000006c FDE cie=00000000 pc=00000035..0000003b - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - -0000007c 00000010 00000080 FDE cie=00000000 pc=0000003b..0000004d - DW_CFA_nop - DW_CFA_nop - DW_CFA_nop - diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.s b/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.s deleted file mode 100644 index 10035ad7..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi-x86_64.s +++ /dev/null @@ -1,107 +0,0 @@ -#; $ as -o test.o gas-cfi-test.s && gcc -nostdlib -o test test.o - - .text - -#; func_locvars -#; - function with a space on the stack -#; allocated for local variables - - .type func_locvars,@function -func_locvars: - .cfi_startproc - - #; alocate space for local vars - sub $0x1234,%rsp - .cfi_adjust_cfa_offset 0x1234 - - #; dummy body - movl $1,%eax - - #; release space of local vars and return - add $0x1234,%rsp - .cfi_adjust_cfa_offset -0x1234 - ret - .cfi_endproc - -#; func_prologue -#; - functions that begins with standard -#; prologue: "pushq %rbp; movq %rsp,%rbp" - - .type func_prologue,@function -func_prologue: - .cfi_startproc - - #; prologue, CFI is valid after - #; each instruction. - pushq %rbp - .cfi_def_cfa_offset 16 - .cfi_offset rbp,-16 - movq %rsp, %rbp - .cfi_def_cfa_register rbp - - #; function body - call func_locvars - addl $3, %eax - - #; epilogue with valid CFI - #; (we're better than gcc :-) - leaveq - .cfi_def_cfa rsp,8 - ret - .cfi_endproc - -#; func_otherreg -#; - function that moves frame pointer to -#; another register (r12) and then allocates -#; a space for local variables - - .type func_otherreg,@function -func_otherreg: - .cfi_startproc - - #; save frame pointer to r12 - movq %rsp,%r12 - .cfi_def_cfa_register r12 - - #; alocate space for local vars - #; (no .cfi_{def,adjust}_cfa_offset here, - #; because CFA is computed from r12!) - sub $100,%rsp - - #; function body - call func_prologue - addl $2, %eax - - #; restore frame pointer from r12 - movq %r12,%rsp - .cfi_def_cfa_register rsp - ret - .cfi_endproc - -#; main -#; - typical function - .type main,@function -main: - .cfi_startproc - - #; only function body that doesn't - #; touch the stack at all. - call func_otherreg - - #; return - ret - .cfi_endproc - -#; _start -#; - standard entry point - - .type _start,@function - .globl _start -_start: - .cfi_startproc - call main - movq %rax,%rdi - movq $0x3c,%rax - syscall - hlt - .cfi_endproc diff --git a/binutils-2.17/gas/testsuite/gas/cfi/cfi.exp b/binutils-2.17/gas/testsuite/gas/cfi/cfi.exp deleted file mode 100644 index eeb55109..00000000 --- a/binutils-2.17/gas/testsuite/gas/cfi/cfi.exp +++ /dev/null @@ -1,72 +0,0 @@ -# ??? This probably shouldn't be replicated here... -proc run_list_test { name opts } { - global srcdir subdir - set testname "cfi $name" - set file $srcdir/$subdir/$name - gas_run ${name}.s $opts ">&dump.out" - if { [regexp_diff "dump.out" "${file}.l"] } then { - fail $testname - verbose "output is [file_contents "dump.out"]" 2 - return - } - pass $testname -} - -if ![is_elf_format] then { - return -} - -if [istarget "x86_64-*"] then { - run_dump_test "cfi-x86_64" - -} elseif [istarget "i?86-*"] then { - run_dump_test "cfi-i386" - -} elseif { [istarget alpha*-*-*] } then { - run_dump_test "cfi-alpha-1" - run_dump_test "cfi-alpha-2" - run_dump_test "cfi-alpha-3" - -} elseif { [istarget ppc*-*-*] || [istarget powerpc*-*-*] } then { - run_dump_test "cfi-ppc-1" - -} elseif { [istarget s390*-*-*] } then { - run_dump_test "cfi-s390-1" - if { [istarget s390x*-*-*] } then { - run_dump_test "cfi-s390x-1" - } - -} elseif { [istarget "m68*-*"] } then { - run_dump_test "cfi-m68k" - -} elseif { [istarget sparc*-*-*] } then { - global NM - global NMFLAGS - global srcdir - - catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help - run_dump_test "cfi-sparc-1" - if { [regexp "elf64\[_-\]sparc" $nm_help] } then { - run_dump_test "cfi-sparc64-1" - } - -} elseif [istarget "sh*-*"] then { - if { [istarget sh64*-*-*] || [istarget sh5*-*-*] } then { - } else { - run_dump_test "cfi-sh-1" - } - -} elseif { [istarget "arm*-*"] || [istarget "xscale*-*"] } then { - run_dump_test "cfi-arm-1" - -} elseif { [istarget "mips*-*"] } then { - run_dump_test "cfi-mips-1" -} else { - return -} - -run_list_test "cfi-diag-1" "" -run_dump_test "cfi-common-1" -run_dump_test "cfi-common-2" -run_dump_test "cfi-common-3" -run_dump_test "cfi-common-4" |