From: Nick Clifton Date: Thu, 24 Apr 2003 17:04:22 +0000 (+0000) Subject: Add tests of conditional branch instructions with probability postfixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=504c3621cf501c889975997bb5d2f82f3cace0b8;p=binutils-gdb.git Add tests of conditional branch instructions with probability postfixes --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 04f98451a77..e619931f285 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-04-24 Nick Clifton + + * 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 * 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 297f4bebaa3..f46a1e194c5 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 + 98: 41 a9 ff f8 bgt- cr2,90 + 9c: 40 8d ff f4 ble\+ cr3,90 + a0: 41 91 ff f0 bgt\+ cr4,90 + a4: 40 95 00 10 ble- cr5,b4 + a8: 41 99 00 0c bgt- cr6,b4 + ac: 40 bd 00 08 ble\+ cr7,b4 + b0: 41 a1 00 04 bgt\+ b4 Disassembly of section \.data: 0+0000000 : diff --git a/gas/testsuite/gas/ppc/astest2.s b/gas/testsuite/gas/ppc/astest2.s index 5af223378fd..33bc79af9ca 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: