This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xcoff gas altivec tests


The ppc gas altivec test was failing for AIX.   No surprise, the dump is
for elf.

This patch has xcoff and xcoff64 versions of the altivec test.

I will commit this shortly.

--
Tom Rix
GCC Engineer
trix@redhat.com


2002-02-14  Tom Rix  <trix@redhat.com>

	* gas/ppc/ppc.exp: Add xcoff altivec tests.
	* gas/ppc/altivec_xcoff.s: New.
	* gas/ppc/altivec_xcoff.d: New.
	* gas/ppc/altivec_xcoff64.s: New.
	* gas/ppc/altivec_xcoff64.d: New.

diff -rcp -N -x *~ src-old/gas/testsuite/gas/ppc/altivec_xcoff.d src/gas/testsuite/gas/ppc/altivec_xcoff.d
*** src-old/gas/testsuite/gas/ppc/altivec_xcoff.d	Wed Dec 31 16:00:00 1969
--- src/gas/testsuite/gas/ppc/altivec_xcoff.d	Thu Feb 14 13:31:47 2002
***************
*** 0 ****
--- 1,16 ----
+ #as: -mppc -maltivec
+ #objdump: -mpowerpc -Dr
+ #name: xcoff AltiVec tests
+ 
+ .*:     file format aixcoff-rs6000
+ 
+ Disassembly of section .text:
+ 
+ 0000000000000000 <.text>:
+    0:	7c 60 06 6c 	dss	3
+    4:	7e 40 06 6c 	dssall	2
+    8:	7c 25 22 ac 	dst	r5,r4,1
+    c:	7e 08 3a ac 	dstt	r8,r7,0
+   10:	7c 65 32 ec 	dstst	r5,r6,3
+   14:	7e 44 2a ec 	dststt	r4,r5,2
+ Disassembly of section .data:
diff -rcp -N -x *~ src-old/gas/testsuite/gas/ppc/altivec_xcoff.s src/gas/testsuite/gas/ppc/altivec_xcoff.s
*** src-old/gas/testsuite/gas/ppc/altivec_xcoff.s	Wed Dec 31 16:00:00 1969
--- src/gas/testsuite/gas/ppc/altivec_xcoff.s	Thu Feb 14 13:27:48 2002
***************
*** 0 ****
--- 1,16 ----
+ # PowerPC xcoff AltiVec tests
+ #as: -mppc -maltivec
+ 	.machine	"ppc"
+ 	.csect .text[PR]
+ 	.csect main[DS]
+ main:
+ 	.csect .text[PR]
+ .main:
+ 	dss	3
+ 	dssall	2
+ 	dst	5,4,1
+ 	dstt	8,7,0
+ 	dstst	5,6,3
+ 	dststt	4,5,2
+ 
+ 
diff -rcp -N -x *~ src-old/gas/testsuite/gas/ppc/altivec_xcoff64.d src/gas/testsuite/gas/ppc/altivec_xcoff64.d
*** src-old/gas/testsuite/gas/ppc/altivec_xcoff64.d	Wed Dec 31 16:00:00 1969
--- src/gas/testsuite/gas/ppc/altivec_xcoff64.d	Thu Feb 14 13:32:47 2002
***************
*** 0 ****
--- 1,16 ----
+ #as: -a64 -mppc64 -maltivec
+ #objdump: -Dr
+ #name: xcoff64 AltiVec tests
+ 
+ .*:     file format aixcoff64-rs6000
+ 
+ Disassembly of section .text:
+ 
+ 0000000000000000 <.text>:
+    0:	7c 60 06 6c 	dss	3
+    4:	7e 40 06 6c 	dssall	2
+    8:	7c 25 22 ac 	dst	r5,r4,1
+    c:	7e 08 3a ac 	dstt	r8,r7,0
+   10:	7c 65 32 ec 	dstst	r5,r6,3
+   14:	7e 44 2a ec 	dststt	r4,r5,2
+ Disassembly of section .data:
diff -rcp -N -x *~ src-old/gas/testsuite/gas/ppc/altivec_xcoff64.s src/gas/testsuite/gas/ppc/altivec_xcoff64.s
*** src-old/gas/testsuite/gas/ppc/altivec_xcoff64.s	Wed Dec 31 16:00:00 1969
--- src/gas/testsuite/gas/ppc/altivec_xcoff64.s	Thu Feb 14 13:28:27 2002
***************
*** 0 ****
--- 1,14 ----
+ # PowerPC xcoff64 AltiVec tests
+ #as: -a64 -mppc64 -maltivec
+ 	.machine	"ppc64"
+ 	.csect .text[PR]
+ 	.csect main[DS]
+ main:
+ 	.csect .text[PR]
+ .main:
+ 	dss	3
+ 	dssall	2
+ 	dst	5,4,1
+ 	dstt	8,7,0
+ 	dstst	5,6,3
+ 	dststt	4,5,2
diff -rcp -N -x *~ src-old/gas/testsuite/gas/ppc/ppc.exp src/gas/testsuite/gas/ppc/ppc.exp
*** src-old/gas/testsuite/gas/ppc/ppc.exp	Thu Feb 14 11:33:10 2002
--- src/gas/testsuite/gas/ppc/ppc.exp	Thu Feb 14 13:38:30 2002
*************** if { [istarget powerpc64*-*-*] || [istar
*** 27,31 ****
  if { [istarget powerpc*-*-*] } then {
     run_dump_test "simpshft"
     run_dump_test "booke"
!    run_dump_test "altivec"
  }
--- 27,37 ----
  if { [istarget powerpc*-*-*] } then {
     run_dump_test "simpshft"
     run_dump_test "booke"
! 
!     if { [istarget powerpc-ibm-aix*] } then {
! 	run_dump_test "altivec_xcoff"
! 	run_dump_test "altivec_xcoff64"
!     } else {
! 	run_dump_test "altivec"
!     }
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]