Add tests of conditional branch instructions with probability postfixes
authorNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2003 17:04:22 +0000 (17:04 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 24 Apr 2003 17:04:22 +0000 (17:04 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/ppc/astest2.d
gas/testsuite/gas/ppc/astest2.s

index 04f98451a77a9d2e0e03fb66dcef2fb5174ad3bc..e619931f285729699ee68a07588d7536f313a1ed 100644 (file)
@@ -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.
index 297f4bebaa3379d1d1b2ca2436e4ed27a770f947..f46a1e194c5251a13f0ae7ae310e0ab6665b5c01 100644 (file)
@@ -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>:
index 5af223378fd2856a354c6ddfa33adf56f7575099..33bc79af9cab336a711f3c95e8eafa148ca8bf9f 100644 (file)
@@ -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: