]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgcc/config/microblaze/modsi3.S
Update copyright years.
[thirdparty/gcc.git] / libgcc / config / microblaze / modsi3.S
index ed28acf8f63efdb5a55c08b02a65f0429a9f7ecc..08bb8cf6221e17773490b7e08ab3f2010c46b641 100644 (file)
@@ -1,6 +1,6 @@
 ###################################
 # 
-#  Copyright (C) 2009-2013 Free Software Foundation, Inc.
+#  Copyright (C) 2009-2024 Free Software Foundation, Inc.
 #
 #  Contributed by Michael Eager <eager@eagercon.com>.
 #
 # 
 #######################################
 
+/* An executable stack is *not* required for these functions.  */
+#ifdef __linux__
+.section .note.GNU-stack,"",%progbits
+.previous
+#endif
+
        .globl  __modsi3
        .ent    __modsi3
        .type   __modsi3,@function
@@ -55,6 +61,8 @@ $LaR5_Pos:
 $LaR6_Pos:
        ADDIK   r3,r0,0      # Clear mod
        ADDIK   r30,r0,0     # clear div
+       BLTId   r5,$LaDIV2   # If r5 is still negative (0x80000000), skip
+                            # the first bit search.
        ADDIK   r29,r0,32    # Initialize the loop count
    # First part try to find the first '1' in the r5
 $LaDIV1: