This is the mail archive of the binutils@sourceware.org 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]

[PATCH] z9-109 unnormalized hfp instructions.


Hi,
I just added 12 new instructions to the s390 backend. They have been
introduced with z9-109 and they do unnormalized hfp multiply and
multiply-and-add. 

Patch and ChangeLog attached.

blue skies,
  Martin.

---

opcodes/ChangeLog:
2005-10-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* s390-opc.txt: Add unnormalized hfp multiply and multiply-and-add
	instructions.

gas/testsuite/ChangeLog:
2005-10-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* gas/s390/zarch-z9-109.s: Add tests for unnormalized hfp multiply
	and multiply-and-add instructions.
	* gas/s390/zarch-z9-109.d: Update expected result.

diff -urpN src/gas/testsuite/gas/s390/zarch-z9-109.d src-s390/gas/testsuite/gas/s390/zarch-z9-109.d
--- src/gas/testsuite/gas/s390/zarch-z9-109.d	2005-08-12 19:44:45.000000000 +0200
+++ src-s390/gas/testsuite/gas/s390/zarch-z9-109.d	2005-10-19 16:47:47.000000000 +0200
@@ -51,3 +51,15 @@ Disassembly of section .text:
 .*:	b9 b2 f0 69 [	 ]*cu41	%r6,%r9,15
 .*:	b2 a7 f0 69 [	 ]*cu12	%r6,%r9,15
 .*:	b9 b0 f0 69 [	 ]*cu14	%r6,%r9,15
+.*:	b3 3b 60 95 [	 ]*myr	%f6,%f9,%f5
+.*:	b3 3d 60 95 [	 ]*myhr	%f6,%f9,%f5
+.*:	b3 39 60 95 [	 ]*mylr	%f6,%f9,%f5
+.*:	ed 95 af ff 60 3b [	 ]*my	%f6,%f9,4095\(%r5,%r10\)
+.*:	ed 95 af ff 60 3d [	 ]*myh	%f6,%f9,4095\(%r5,%r10\)
+.*:	ed 95 af ff 60 39 [	 ]*myl	%f6,%f9,4095\(%r5,%r10\)
+.*:	b3 3a 60 95 [	 ]*mayr	%f6,%f9,%f5
+.*:	b3 3c 60 95 [	 ]*mayhr	%f6,%f9,%f5
+.*:	b3 38 60 95 [	 ]*maylr	%f6,%f9,%f5
+.*:	ed 95 af ff 60 3a [	 ]*may	%f6,%f9,4095\(%r5,%r10\)
+.*:	ed 95 af ff 60 3c [	 ]*mayh	%f6,%f9,4095\(%r5,%r10\)
+.*:	ed 95 af ff 60 38 [	 ]*mayl	%f6,%f9,4095\(%r5,%r10\)
diff -urpN src/gas/testsuite/gas/s390/zarch-z9-109.s src-s390/gas/testsuite/gas/s390/zarch-z9-109.s
--- src/gas/testsuite/gas/s390/zarch-z9-109.s	2005-08-12 19:44:45.000000000 +0200
+++ src-s390/gas/testsuite/gas/s390/zarch-z9-109.s	2005-10-19 16:47:30.000000000 +0200
@@ -45,3 +45,15 @@ foo:
 	cu41	%r6,%r9,15
 	cu12	%r6,%r9,15
 	cu14	%r6,%r9,15
+	myr	%f6,%f9,%f5
+	myhr	%f6,%f9,%f5
+	mylr	%f6,%f9,%f5
+	my	%f6,%f9,4095(%r5,%r10)
+	myh	%f6,%f9,4095(%r5,%r10)
+	myl	%f6,%f9,4095(%r5,%r10)
+	mayr	%f6,%f9,%f5
+	mayhr	%f6,%f9,%f5
+	maylr	%f6,%f9,%f5
+	may	%f6,%f9,4095(%r5,%r10)
+	mayh	%f6,%f9,4095(%r5,%r10)
+	mayl	%f6,%f9,4095(%r5,%r10)
diff -urpN src/opcodes/s390-opc.txt src-s390/opcodes/s390-opc.txt
--- src/opcodes/s390-opc.txt	2005-08-12 19:44:45.000000000 +0200
+++ src-s390/opcodes/s390-opc.txt	2005-10-19 10:41:18.000000000 +0200
@@ -850,3 +850,16 @@ b9b2 cu41 RRF_M0RR "convert utf-32 to ut
 b2a7 cu12 RRF_M0RR "convert utf-8 to utf-16" z9-109 zarch
 b2a7 cutfu RRF_M0RR "convert utf-8 to unicode" z9-109 zarch
 b9b0 cu14 RRF_M0RR "convert utf-8 to utf-32" z9-109 zarch
+# z9-109 unnormalized hfp multiply & multiply and add
+b33b myr RRF_F0FF "multiply unnormalized long hfp" z9-109 zarch
+b33d myhr RRF_F0FF "multiply unnormalized long hfp high" z9-109 zarch
+b339 mylr RRF_F0FF "multiply unnormalized long hfp low" z9-109 zarch
+ed000000003b my RXF_FRRDF "multiply unnormalized long hfp" z9-109 zarch
+ed000000003d myh RXF_FRRDF "multiply unnormalized long hfp high" z9-109 zarch
+ed0000000039 myl RXF_FRRDF "multiply unnormalized long hfp low" z9-109 zarch
+b33a mayr RRF_F0FF "multiply and add unnormalized long hfp" z9-109 zarch
+b33c mayhr RRF_F0FF "multiply and add unnormalized long hfp high" z9-109 zarch
+b338 maylr RRF_F0FF "multiply and add unnormalized long hfp low" z9-109 zarch
+ed000000003a may RXF_FRRDF "multiply and add unnormalized long hfp" z9-109 zarch
+ed000000003c mayh RXF_FRRDF "multiply and add unnormalized long hfp high" z9-109 zarch
+ed0000000038 mayl RXF_FRRDF "multiply and add unnormalized long hfp low" z9-109 zarch


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