diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2016-08-03 00:22:44 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2016-08-14 22:48:23 +0200 |
commit | f038a42f547836ecb61b2a7ce1c50542df2ac769 (patch) | |
tree | 1138ebf84f4d6112e251f0e4ac87fbd561152aaf /sysdeps | |
parent | 8026e9db17af663b19a42892874d483328ada828 (diff) | |
download | glibc-f038a42f547836ecb61b2a7ce1c50542df2ac769.tar glibc-f038a42f547836ecb61b2a7ce1c50542df2ac769.tar.gz glibc-f038a42f547836ecb61b2a7ce1c50542df2ac769.tar.bz2 glibc-f038a42f547836ecb61b2a7ce1c50542df2ac769.zip |
powerpc: fix ifunc-sel.h fix asm constraints and clobber list
As pointer out on the mailing list, the inline assembly code in
sysdeps/powerpc/ifunc-sel.h doesn't have a list of clobbered registers
and used wrong constraints.
This patch fixes that. I verified it doesn't introduce any change in the
generated code.
Changelog:
* sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
clobber list. Use "i" constraint instead of "X".
(ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
of "X".
(cherry picked from commit 30f926d3b3dcb74c038155715ed341d5c4b334eb)
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/powerpc/ifunc-sel.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/powerpc/ifunc-sel.h b/sysdeps/powerpc/ifunc-sel.h index 79d110fef1..ac589bd3c0 100644 --- a/sysdeps/powerpc/ifunc-sel.h +++ b/sysdeps/powerpc/ifunc-sel.h @@ -26,7 +26,8 @@ ifunc_sel (int (*f1) (void), int (*f2) (void), int (*f3) (void)) "addi %0,%0,%4-1b@l\n\t" "2:" : "=r" (ret) - : "X" (&global), "X" (f1), "X" (f2), "X" (f3)); + : "i" (&global), "i" (f1), "i" (f2), "i" (f3) + : "11", "12", "cr0"); return ret; } @@ -41,7 +42,8 @@ ifunc_one (int (*f1) (void)) "addis %0,%0,%1-1b@ha\n\t" "addi %0,%0,%1-1b@l" : "=r" (ret) - : "X" (f1)); + : "i" (f1) + : "12"); return ret; } #endif |