1 # Copyright (C) 2001 Free Software Foundation, Inc.
2 # Contributed by Red Hat
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 # Aix on PowerPC tests
22 proc do_align_test {} {
23 set testname "align.s: Alignment of symbols part 1"
30 set testname "align.s (part 2)"
32 if [gas_test_old "align.s" "" "Alignment of symbols part 1"] {
33 objdump_start_no_subdir "a.out" "-t"
37 -re "AUX val 16 prmhsh 0 snhsh 0 typ 3 algn 2 clss 5 stb 0 snstb 0" { set x0 1 }
38 -re "AUX val 32 prmhsh 0 snhsh 0 typ 3 algn 1 clss 5 stb 0 snstb 0" { set x1 1 }
39 -re "AUX val 64 prmhsh 0 snhsh 0 typ 3 algn 2 clss 5 stb 0 snstb 0" { set x2 1 }
40 -re "AUX val 128 prmhsh 0 snhsh 0 typ 3 algn 3 clss 5 stb 0 snstb 0" { set x3 1 }
41 -re "AUX val 256 prmhsh 0 snhsh 0 typ 3 algn 4 clss 5 stb 0 snstb 0" { set x4 1 }
43 timeout { perror "timeout\n"; break }
50 if [all_ones $x0 $x1 $x2 $x3 $x4] then {
59 if [istarget powerpc*-*-aix4.3*] then {
61 # Make sure that symbols are correctly aligned