|
|
147e83 |
From a6e4fa635fea4576c65747cc4b9e3a1fe9c9911f Mon Sep 17 00:00:00 2001
|
|
|
147e83 |
From: Stefan Liebler <stli@linux.vnet.ibm.com>
|
|
|
147e83 |
Date: Mon, 7 Nov 2016 16:12:24 +0100
|
|
|
147e83 |
Subject: [PATCH 08/17] S390: Use __asm__ instead of asm.
|
|
|
147e83 |
|
|
|
147e83 |
upstream commit 31cf39421bae23ffc7b6c6a229e14f8faa41608f
|
|
|
147e83 |
|
|
|
147e83 |
This part is a prerequirement for the s390 iconv patches.
|
|
|
147e83 |
---
|
|
|
147e83 |
sysdeps/s390/s390-64/utf16-utf32-z9.c | 28 ++++++++++++++--------------
|
|
|
147e83 |
sysdeps/s390/s390-64/utf8-utf16-z9.c | 28 ++++++++++++++--------------
|
|
|
147e83 |
sysdeps/s390/s390-64/utf8-utf32-z9.c | 28 ++++++++++++++--------------
|
|
|
147e83 |
3 files changed, 42 insertions(+), 42 deletions(-)
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/sysdeps/s390/s390-64/utf16-utf32-z9.c b/sysdeps/s390/s390-64/utf16-utf32-z9.c
|
|
|
147e83 |
index ddc42fe..e6a033d 100644
|
|
|
147e83 |
--- a/sysdeps/s390/s390-64/utf16-utf32-z9.c
|
|
|
147e83 |
+++ b/sysdeps/s390/s390-64/utf16-utf32-z9.c
|
|
|
147e83 |
@@ -163,22 +163,22 @@ gconv_end (struct __gconv_step *data)
|
|
|
147e83 |
directions. */
|
|
|
147e83 |
#define HARDWARE_CONVERT(INSTRUCTION) \
|
|
|
147e83 |
{ \
|
|
|
147e83 |
- register const unsigned char* pInput asm ("8") = inptr; \
|
|
|
147e83 |
- register unsigned long long inlen asm ("9") = inend - inptr; \
|
|
|
147e83 |
- register unsigned char* pOutput asm ("10") = outptr; \
|
|
|
147e83 |
- register unsigned long long outlen asm("11") = outend - outptr; \
|
|
|
147e83 |
+ register const unsigned char* pInput __asm__ ("8") = inptr; \
|
|
|
147e83 |
+ register unsigned long long inlen __asm__ ("9") = inend - inptr; \
|
|
|
147e83 |
+ register unsigned char* pOutput __asm__ ("10") = outptr; \
|
|
|
147e83 |
+ register unsigned long long outlen __asm__("11") = outend - outptr; \
|
|
|
147e83 |
uint64_t cc = 0; \
|
|
|
147e83 |
\
|
|
|
147e83 |
- asm volatile (".machine push \n\t" \
|
|
|
147e83 |
- ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
- "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
- ".machine pop \n\t" \
|
|
|
147e83 |
- " jo 0b \n\t" \
|
|
|
147e83 |
- " ipm %2 \n" \
|
|
|
147e83 |
- : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
- "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
- : \
|
|
|
147e83 |
- : "cc", "memory"); \
|
|
|
147e83 |
+ __asm__ volatile (".machine push \n\t" \
|
|
|
147e83 |
+ ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
+ "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
+ ".machine pop \n\t" \
|
|
|
147e83 |
+ " jo 0b \n\t" \
|
|
|
147e83 |
+ " ipm %2 \n" \
|
|
|
147e83 |
+ : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
+ "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
+ : \
|
|
|
147e83 |
+ : "cc", "memory"); \
|
|
|
147e83 |
\
|
|
|
147e83 |
inptr = pInput; \
|
|
|
147e83 |
outptr = pOutput; \
|
|
|
147e83 |
diff --git a/sysdeps/s390/s390-64/utf8-utf16-z9.c b/sysdeps/s390/s390-64/utf8-utf16-z9.c
|
|
|
147e83 |
index 2c2d92c..6dad1c2 100644
|
|
|
147e83 |
--- a/sysdeps/s390/s390-64/utf8-utf16-z9.c
|
|
|
147e83 |
+++ b/sysdeps/s390/s390-64/utf8-utf16-z9.c
|
|
|
147e83 |
@@ -145,22 +145,22 @@ gconv_end (struct __gconv_step *data)
|
|
|
147e83 |
directions. */
|
|
|
147e83 |
#define HARDWARE_CONVERT(INSTRUCTION) \
|
|
|
147e83 |
{ \
|
|
|
147e83 |
- register const unsigned char* pInput asm ("8") = inptr; \
|
|
|
147e83 |
- register unsigned long long inlen asm ("9") = inend - inptr; \
|
|
|
147e83 |
- register unsigned char* pOutput asm ("10") = outptr; \
|
|
|
147e83 |
- register unsigned long long outlen asm("11") = outend - outptr; \
|
|
|
147e83 |
+ register const unsigned char* pInput __asm__ ("8") = inptr; \
|
|
|
147e83 |
+ register unsigned long long inlen __asm__ ("9") = inend - inptr; \
|
|
|
147e83 |
+ register unsigned char* pOutput __asm__ ("10") = outptr; \
|
|
|
147e83 |
+ register unsigned long long outlen __asm__("11") = outend - outptr; \
|
|
|
147e83 |
uint64_t cc = 0; \
|
|
|
147e83 |
\
|
|
|
147e83 |
- asm volatile (".machine push \n\t" \
|
|
|
147e83 |
- ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
- "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
- ".machine pop \n\t" \
|
|
|
147e83 |
- " jo 0b \n\t" \
|
|
|
147e83 |
- " ipm %2 \n" \
|
|
|
147e83 |
- : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
- "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
- : \
|
|
|
147e83 |
- : "cc", "memory"); \
|
|
|
147e83 |
+ __asm__ volatile (".machine push \n\t" \
|
|
|
147e83 |
+ ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
+ "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
+ ".machine pop \n\t" \
|
|
|
147e83 |
+ " jo 0b \n\t" \
|
|
|
147e83 |
+ " ipm %2 \n" \
|
|
|
147e83 |
+ : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
+ "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
+ : \
|
|
|
147e83 |
+ : "cc", "memory"); \
|
|
|
147e83 |
\
|
|
|
147e83 |
inptr = pInput; \
|
|
|
147e83 |
outptr = pOutput; \
|
|
|
147e83 |
diff --git a/sysdeps/s390/s390-64/utf8-utf32-z9.c b/sysdeps/s390/s390-64/utf8-utf32-z9.c
|
|
|
147e83 |
index c582155..721279e 100644
|
|
|
147e83 |
--- a/sysdeps/s390/s390-64/utf8-utf32-z9.c
|
|
|
147e83 |
+++ b/sysdeps/s390/s390-64/utf8-utf32-z9.c
|
|
|
147e83 |
@@ -149,22 +149,22 @@ gconv_end (struct __gconv_step *data)
|
|
|
147e83 |
directions. */
|
|
|
147e83 |
#define HARDWARE_CONVERT(INSTRUCTION) \
|
|
|
147e83 |
{ \
|
|
|
147e83 |
- register const unsigned char* pInput asm ("8") = inptr; \
|
|
|
147e83 |
- register unsigned long long inlen asm ("9") = inend - inptr; \
|
|
|
147e83 |
- register unsigned char* pOutput asm ("10") = outptr; \
|
|
|
147e83 |
- register unsigned long long outlen asm("11") = outend - outptr; \
|
|
|
147e83 |
+ register const unsigned char* pInput __asm__ ("8") = inptr; \
|
|
|
147e83 |
+ register unsigned long long inlen __asm__ ("9") = inend - inptr; \
|
|
|
147e83 |
+ register unsigned char* pOutput __asm__ ("10") = outptr; \
|
|
|
147e83 |
+ register unsigned long long outlen __asm__("11") = outend - outptr; \
|
|
|
147e83 |
uint64_t cc = 0; \
|
|
|
147e83 |
\
|
|
|
147e83 |
- asm volatile (".machine push \n\t" \
|
|
|
147e83 |
- ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
- "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
- ".machine pop \n\t" \
|
|
|
147e83 |
- " jo 0b \n\t" \
|
|
|
147e83 |
- " ipm %2 \n" \
|
|
|
147e83 |
- : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
- "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
- : \
|
|
|
147e83 |
- : "cc", "memory"); \
|
|
|
147e83 |
+ __asm__ volatile (".machine push \n\t" \
|
|
|
147e83 |
+ ".machine \"z9-109\" \n\t" \
|
|
|
147e83 |
+ "0: " INSTRUCTION " \n\t" \
|
|
|
147e83 |
+ ".machine pop \n\t" \
|
|
|
147e83 |
+ " jo 0b \n\t" \
|
|
|
147e83 |
+ " ipm %2 \n" \
|
|
|
147e83 |
+ : "+a" (pOutput), "+a" (pInput), "+d" (cc), \
|
|
|
147e83 |
+ "+d" (outlen), "+d" (inlen) \
|
|
|
147e83 |
+ : \
|
|
|
147e83 |
+ : "cc", "memory"); \
|
|
|
147e83 |
\
|
|
|
147e83 |
inptr = pInput; \
|
|
|
147e83 |
outptr = pOutput; \
|
|
|
147e83 |
--
|
|
|
147e83 |
1.8.3.1
|
|
|
147e83 |
|