diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-12-14 13:27:34 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-12-14 13:27:34 +0000 |
commit | f68e81fcd4015029cf382711ca0f70c85814c5b3 (patch) | |
tree | 98ac225f843c5c5d8ce2a66eea5b421e485a6e5c /gas/testsuite | |
parent | 4d48ecf313d597450f4540e6d1eeb0ac4c56866c (diff) | |
download | gdb-f68e81fcd4015029cf382711ca0f70c85814c5b3.zip gdb-f68e81fcd4015029cf382711ca0f70c85814c5b3.tar.gz gdb-f68e81fcd4015029cf382711ca0f70c85814c5b3.tar.bz2 |
2011-12-14 Iain Sandoe <iains@gcc.gnu.org>
* gas/mach-o: New.
* gas/mach-o/mach-o.exp: New.
* gas/mach-o/warn-1.s: New.
* gas/mach-o/lcomm-1.s: New.
* gas/mach-o/lcomm-1.d: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/mach-o/empty.s | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mach-o/lcomm-1.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mach-o/lcomm-1.s | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/mach-o/mach-o.exp | 20 | ||||
-rw-r--r-- | gas/testsuite/gas/mach-o/warn-1.s | 5 |
6 files changed, 57 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ad677ba..14bfb4f 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2011-12-14 Iain Sandoe <iains@gcc.gnu.org> + + * gas/mach-o: New. + * gas/mach-o/mach-o.exp: New. + * gas/mach-o/warn-1.s: New. + * gas/mach-o/lcomm-1.s: New. + * gas/mach-o/lcomm-1.d: New. + 2011-12-08 Andrew Pinski <apinski@cavium.com> * gas/mips/mips32-mt.d: Add pause instruction encoding to the end. diff --git a/gas/testsuite/gas/mach-o/empty.s b/gas/testsuite/gas/mach-o/empty.s new file mode 100644 index 0000000..b2a4ba5 --- /dev/null +++ b/gas/testsuite/gas/mach-o/empty.s @@ -0,0 +1 @@ +# nothing here diff --git a/gas/testsuite/gas/mach-o/lcomm-1.d b/gas/testsuite/gas/mach-o/lcomm-1.d new file mode 100644 index 0000000..a9e29bc --- /dev/null +++ b/gas/testsuite/gas/mach-o/lcomm-1.d @@ -0,0 +1,12 @@ +# nm: -B +# +# match for 32 and 64 bits. +(00000000)?00008000 b align_max +(00000000)?00000010 b another_align +(00000000)?00000000 b column0 +(00000000)?00000002 b column1 +(00000000)?00000004 b local3_noalign +(00000000)?00000008 b local4_aligned_2 +(00000000)?00000020 b nospaces +(00000000)?00000040 b trailingspace +# diff --git a/gas/testsuite/gas/mach-o/lcomm-1.s b/gas/testsuite/gas/mach-o/lcomm-1.s new file mode 100644 index 0000000..2e44f37 --- /dev/null +++ b/gas/testsuite/gas/mach-o/lcomm-1.s @@ -0,0 +1,11 @@ + +.lcomm column0,1,1 + .lcomm column1, 2,1 + .lcomm local3_noalign, 3,1 + + .lcomm local4_aligned_2, 4, 2 + .lcomm another_align, 5, 4 + .lcomm nospaces,6,5 + .lcomm trailingspace,7,6 + + .lcomm align_max, 8, 15 diff --git a/gas/testsuite/gas/mach-o/mach-o.exp b/gas/testsuite/gas/mach-o/mach-o.exp new file mode 100644 index 0000000..854cb0c --- /dev/null +++ b/gas/testsuite/gas/mach-o/mach-o.exp @@ -0,0 +1,20 @@ +# +# mach-o tests +# + +# We're testing bits in obj-mach-o -- don't run on anything else. + +if {[istarget "*-*-darwin*"]} then { + +load_lib gas-dg.exp + +run_dump_tests [lsort [glob -nocomplain $srcdir/$subdir/*.d]] + +dg-init + +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" "" + +dg-finish + +} +# mach-o diff --git a/gas/testsuite/gas/mach-o/warn-1.s b/gas/testsuite/gas/mach-o/warn-1.s new file mode 100644 index 0000000..5ed9369 --- /dev/null +++ b/gas/testsuite/gas/mach-o/warn-1.s @@ -0,0 +1,5 @@ +# { dg-do assemble } + + .lcomm align_too_big,9,100 + +# { dg-warning "Warning: Alignment (100) too large: 15 assumed." "" { xfail *-*-darwin* } 3 } |