aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-04-24 17:04:22 +0000
committerNick Clifton <nickc@redhat.com>2003-04-24 17:04:22 +0000
commit504c3621cf501c889975997bb5d2f82f3cace0b8 (patch)
tree2186297cae0fa41386acb5dde559002a5383bab7 /gas/testsuite
parent0dbc2a48b46677d805d6e62f5ee8df85a7868801 (diff)
downloadgdb-504c3621cf501c889975997bb5d2f82f3cace0b8.zip
gdb-504c3621cf501c889975997bb5d2f82f3cace0b8.tar.gz
gdb-504c3621cf501c889975997bb5d2f82f3cace0b8.tar.bz2
Add tests of conditional branch instructions with probability postfixes
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/ppc/astest2.d9
-rw-r--r--gas/testsuite/gas/ppc/astest2.s14
3 files changed, 29 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 04f9845..e619931 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-24 Nick Clifton <nickc@redhat.com>
+
+ * gas/ppc/astest2.s: Add tests for conditional branches with
+ probability indicators.
+ * gas/ppc/astest2.d: Add expected disassembly.
+
2003-04-23 H.J. Lu <hjl@gnu.org>
* gas/ia64/opc-i.s: Add testcases for valid label.
diff --git a/gas/testsuite/gas/ppc/astest2.d b/gas/testsuite/gas/ppc/astest2.d
index 297f4be..f46a1e1 100644
--- a/gas/testsuite/gas/ppc/astest2.d
+++ b/gas/testsuite/gas/ppc/astest2.d
@@ -66,6 +66,15 @@ Disassembly of section \.text:
88: 00 00 00 02 \.long 0x2
88: R_PPC_ADDR32 apfour\+0x2
8c: 00 00 00 00 \.long 0x0
+ 90: 60 00 00 00 nop
+ 94: 40 a5 ff fc ble- cr1,90 <apfour\+0x14>
+ 98: 41 a9 ff f8 bgt- cr2,90 <apfour\+0x14>
+ 9c: 40 8d ff f4 ble\+ cr3,90 <apfour\+0x14>
+ a0: 41 91 ff f0 bgt\+ cr4,90 <apfour\+0x14>
+ a4: 40 95 00 10 ble- cr5,b4 <nop>
+ a8: 41 99 00 0c bgt- cr6,b4 <nop>
+ ac: 40 bd 00 08 ble\+ cr7,b4 <nop>
+ b0: 41 a1 00 04 bgt\+ b4 <nop>
Disassembly of section \.data:
0+0000000 <x>:
diff --git a/gas/testsuite/gas/ppc/astest2.s b/gas/testsuite/gas/ppc/astest2.s
index 5af2233..33bc79a 100644
--- a/gas/testsuite/gas/ppc/astest2.s
+++ b/gas/testsuite/gas/ppc/astest2.s
@@ -50,3 +50,17 @@ y: .long 0
.type a,@function
.type b,@function
.type apfour,@function
+
+ .section ".text"
+.L1:
+ nop
+ ble- 1,.L1
+ bgt- 2,.L1
+ ble+ 3,.L1
+ bgt+ 4,.L1
+ ble- 5,.L2
+ bgt- 6,.L2
+ ble+ 7,.L2
+ bgt+ 0,.L2
+.L2:
+ nop: