diff options
author | Nick Clifton <nickc@redhat.com> | 2003-12-17 09:41:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2003-12-17 09:41:07 +0000 |
commit | b145f546d404da31c1ae51e7462ee8ec75e61929 (patch) | |
tree | 05c347385e9518cd8146eacc47963e4f358453be /gas/testsuite | |
parent | b639a77072d942b098bcef1f4270c873f06dfce1 (diff) | |
download | gdb-b145f546d404da31c1ae51e7462ee8ec75e61929.zip gdb-b145f546d404da31c1ae51e7462ee8ec75e61929.tar.gz gdb-b145f546d404da31c1ae51e7462ee8ec75e61929.tar.bz2 |
Replace --error-explicit-parallel-conflicts with --ignore-parallel-conflitcs.
Add test of parallel constraint checking.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/m32r/error.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/m32r/parallel.s | 14 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index f888a80..b606043 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-12-17 Nick Clifton <nickc@redhat.com> + + * gas/m32r/error.exp: Add parallel.s + * gas/m32r/parallel.s: New file: Test warning and error + messages produced for parallel conflicts. + 2003-12-16 Nick Clifton <nickc@redhat.com> * gas/arm/arm.exp: Run special versions of the inst, ldconst, diff --git a/gas/testsuite/gas/m32r/error.exp b/gas/testsuite/gas/m32r/error.exp index a188719..17807c1 100644 --- a/gas/testsuite/gas/m32r/error.exp +++ b/gas/testsuite/gas/m32r/error.exp @@ -9,6 +9,7 @@ if [istarget m32r-*-*] { dg-runtest "$srcdir/$subdir/wrongsize.s" "" "" dg-runtest "$srcdir/$subdir/interfere.s" "" "" dg-runtest "$srcdir/$subdir/outofrange.s" "" "" + dg-runtest "$srcdir/$subdir/parallel.s" "" "" dg-finish diff --git a/gas/testsuite/gas/m32r/parallel.s b/gas/testsuite/gas/m32r/parallel.s new file mode 100644 index 0000000..38a08a2 --- /dev/null +++ b/gas/testsuite/gas/m32r/parallel.s @@ -0,0 +1,14 @@ +; Test error messages where parallel instructions conflict + +; { dg-options "-m32rx" } +; { dg-do assemble { target m32r-*-* } } + + .text + .global parallel +parallel: + mv r1,r0 || mv r2,r1 + ; { dg-warning "output of 1st instruction" "parallel output overlaps input" { target *-*-* } { 9 } } + mv r1,r0 || mv r0,r2 + ; { dg-warning "output of 2nd instruction" "parallel output overlaps input" { target *-*-* } { 11 } } + mv r1,r0 || mv r1,r2 + ; { dg-error "instructions write to the same destination register" "parallel overlapping destinations" { target *-*-* } { 13 } } |