]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use .machine push; .machine "power6" and .machine pop around mtfsf insns outside...
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 2009 04:46:08 +0000 (04:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 2009 04:46:08 +0000 (04:46 +0000)
sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S

index d83a0ef28d7aa2c761c2346d837789ef7ec7db4b..127c9e4581aa5dd8225782372f80c8a0018016e3 100644 (file)
@@ -204,6 +204,8 @@ ENTRY(__CONTEXT_FUNC_NAME)
        /* Use the extended four-operand version of the mtfsf insn.  */
        mtfsf   0xff,fp31,1,0
 # else
+       .machine push
+       .machine "power6"
        /* Availability of DFP indicates a 64-bit FPSCR.  */
        andi.   r6,r7,PPC_FEATURE_HAS_DFP
        beq     7f
@@ -212,7 +214,7 @@ ENTRY(__CONTEXT_FUNC_NAME)
        b       8f
        /* Continue to operate on the FPSCR as if it were 32-bits.  */
 7:     mtfsf   0xff,fp31
-8:
+8:     .machine pop
 # endif /* _ARCH_PWR6 */
        lfd     fp1,_UC_FREGS+(1*8)(r31)
        lfd     fp2,_UC_FREGS+(2*8)(r31)
index 243a66a0d4bc219812fd5372e83a9dba9c22d64a..89b1a6195414e531c95d5e372d61eae1fbd85465 100644 (file)
@@ -430,6 +430,8 @@ ENTRY(__CONTEXT_FUNC_NAME)
        /* Use the extended four-operand version of the mtfsf insn.  */
        mtfsf   0xff,fp31,1,0
 # else
+       .machine push
+       .machine "power6"
        /* Availability of DFP indicates a 64-bit FPSCR.  */
        andi.   r6,r7,PPC_FEATURE_HAS_DFP
        beq     7f
@@ -438,7 +440,7 @@ ENTRY(__CONTEXT_FUNC_NAME)
        b       8f
        /* Continue to operate on the FPSCR as if it were 32-bits.  */
 7:     mtfsf   0xff,fp31
-8:
+8:     .machine pop
 #endif /* _ARCH_PWR6 */
        lfd     fp1,_UC_FREGS+(1*8)(r31)
        lfd     fp2,_UC_FREGS+(2*8)(r31)
index b4e28b48130ec64f6ba8eb7dea7bba5a00faee83..24413e00bcbff89d091413cbe55c0167d2fc4d47 100644 (file)
@@ -1,5 +1,6 @@
 /* Switch to context.
-   Copyright (C) 2002, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005, 2006, 2008, 2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -86,6 +87,8 @@ ENTRY(__novec_setcontext)
   /* Use the extended four-operand version of the mtfsf insn.  */
   mtfsf  0xff,fp0,1,0
 # else
+  .machine push
+  .machine "power6"
   /* Availability of DFP indicates a 64-bit FPSCR.  */
   andi.  r6,r5,PPC_FEATURE_HAS_DFP
   beq    5f
@@ -96,6 +99,7 @@ ENTRY(__novec_setcontext)
 5:
   mtfsf  0xff,fp0
 6:
+  .machine pop
 # endif /* _ARCH_PWR6 */
   lfd  fp29,(SIGCONTEXT_FP_REGS+(PT_R29*8))(r31)
   lfd  fp28,(SIGCONTEXT_FP_REGS+(PT_R28*8))(r31)
@@ -374,6 +378,8 @@ L(has_no_vec):
   /* Use the extended four-operand version of the mtfsf insn.  */
   mtfsf  0xff,fp0,1,0
 # else
+  .machine push
+  .machine "power6"
   /* Availability of DFP indicates a 64-bit FPSCR.  */
   andi.  r6,r5,PPC_FEATURE_HAS_DFP
   beq    7f
@@ -384,6 +390,7 @@ L(has_no_vec):
 7:
   mtfsf  0xff,fp0
 8:
+  .machine pop
 # endif /* _ARCH_PWR6 */
   lfd  fp29,(SIGCONTEXT_FP_REGS+(PT_R29*8))(r31)
   lfd  fp28,(SIGCONTEXT_FP_REGS+(PT_R28*8))(r31)
index c42ccfbe44f4b63db2380e772ed93dfe11ff47c7..6c075a9a350717bbb83e281744e2b11f87bee997 100644 (file)
@@ -1,5 +1,6 @@
 /* Save current context and install the given one.
-   Copyright (C) 2002, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005, 2006, 2008, 2009
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -180,6 +181,8 @@ ENTRY(__novec_swapcontext)
   /* Use the extended four-operand version of the mtfsf insn.  */
   mtfsf  0xff,fp0,1,0
 # else
+  .machine push
+  .machine "power6"
   /* Availability of DFP indicates a 64-bit FPSCR.  */
   andi.  r6,r8,PPC_FEATURE_HAS_DFP
   beq    5f
@@ -190,6 +193,7 @@ ENTRY(__novec_swapcontext)
 5:
   mtfsf  0xff,fp0
 6:
+  .machine pop
 #endif /* _ARCH_PWR6 */
   lfd  fp29,(SIGCONTEXT_FP_REGS+(PT_R29*8))(r31)
   lfd  fp28,(SIGCONTEXT_FP_REGS+(PT_R28*8))(r31)
@@ -672,6 +676,8 @@ L(has_no_vec2):
   /* Use the extended four-operand version of the mtfsf insn.  */
   mtfsf  0xff,fp0,1,0
 # else
+  .machine push
+  .machine "power6"
   /* Availability of DFP indicates a 64-bit FPSCR.  */
   andi.  r6,r8,PPC_FEATURE_HAS_DFP
   beq    7f
@@ -682,6 +688,7 @@ L(has_no_vec2):
 7:
   mtfsf  0xff,fp0
 8:
+  .machine pop
 #endif /* _ARCH_PWR6 */
   lfd  fp29,(SIGCONTEXT_FP_REGS+(PT_R29*8))(r31)
   lfd  fp28,(SIGCONTEXT_FP_REGS+(PT_R28*8))(r31)