This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ppc-gas: Add '+' and '-' to symbol chars list
Hi H.J.
> Would you mind adding a testcase for that? "make check" passed for
> me on pcc-linux.
Good idea. Applying the patch below.
Cheers
Nick
2003-04-24 Nick Clifton <nickc at redhat dot com>
* gas/ppc/astest2.s: Add tests for conditional branches with
probability indicators.
* gas/ppc/astest2.d: Add expected disassembly.
Index: gas/testsuite/gas/ppc/astest2.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/astest2.s,v
retrieving revision 1.1.1.1
diff -c -3 -p -w -r1.1.1.1 astest2.s
*** gas/testsuite/gas/ppc/astest2.s 3 May 1999 07:28:52 -0000 1.1.1.1
--- gas/testsuite/gas/ppc/astest2.s 24 Apr 2003 17:01:20 -0000
*************** y: .long 0
*** 50,52 ****
--- 50,67 ----
.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:
+
Index: gas/testsuite/gas/ppc/astest2.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/astest2.d,v
retrieving revision 1.2
diff -c -3 -p -w -r1.2 astest2.d
*** gas/testsuite/gas/ppc/astest2.d 22 Aug 2002 05:23:43 -0000 1.2
--- gas/testsuite/gas/ppc/astest2.d 24 Apr 2003 17:01:20 -0000
*************** Disassembly of section \.text:
*** 66,71 ****
--- 66,80 ----
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>: