aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: