aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2019-06-06 09:07:36 +0000
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>2019-06-06 09:07:36 +0000
commitd1b2f85f78589a2bece2f874a6021ed746209697 (patch)
tree342bfa9426d21c5bcca0aed9ff9f4c1c3cd84344
parentea8a6038b0b86ccc037d80a9b600e51b1558ad14 (diff)
downloadgcc-d1b2f85f78589a2bece2f874a6021ed746209697.zip
gcc-d1b2f85f78589a2bece2f874a6021ed746209697.tar.gz
gcc-d1b2f85f78589a2bece2f874a6021ed746209697.tar.bz2
MSP430: Put libgcc shift functions in their own section
2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config/msp430/slli.S (__mspabi_slli_n): Put function in its own section. (__mspabi_slli): Likewise. (__mspabi_slll_n): Likewise. (__mspabi_slll): Likewise. * config/msp430/srai.S (__mspabi_srai_n): Likewise. (__mspabi_srai): Likewise. (__mspabi_sral_n): Likewise. (__mspabi_sral): Likewise. * config/msp430/srli.S (__mspabi_srli_n): Likewise. (__mspabi_srli): Likewise. (__mspabi_srll_n): Likewise. (__mspabi_srll): Likewise. From-SVN: r271992
-rw-r--r--libgcc/ChangeLog16
-rw-r--r--libgcc/config/msp430/slli.S8
-rw-r--r--libgcc/config/msp430/srai.S8
-rw-r--r--libgcc/config/msp430/srli.S8
4 files changed, 34 insertions, 6 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 93cdcda..2a35363 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,19 @@
+2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
+
+ * config/msp430/slli.S (__mspabi_slli_n): Put function in its own
+ section.
+ (__mspabi_slli): Likewise.
+ (__mspabi_slll_n): Likewise.
+ (__mspabi_slll): Likewise.
+ * config/msp430/srai.S (__mspabi_srai_n): Likewise.
+ (__mspabi_srai): Likewise.
+ (__mspabi_sral_n): Likewise.
+ (__mspabi_sral): Likewise.
+ * config/msp430/srli.S (__mspabi_srli_n): Likewise.
+ (__mspabi_srli): Likewise.
+ (__mspabi_srll_n): Likewise.
+ (__mspabi_srll): Likewise.
+
2019-06-05 Yoshinori Sato <ysato@users.sourceforge.jp>
* config.host (rx-*-linux*): Add t-fdpbit to tmake_file
diff --git a/libgcc/config/msp430/slli.S b/libgcc/config/msp430/slli.S
index 9d151a9..89ca35a 100644
--- a/libgcc/config/msp430/slli.S
+++ b/libgcc/config/msp430/slli.S
@@ -22,8 +22,9 @@
.text
-/* Logical Left Shift - R12 -> R12 */
+/* Logical Left Shift - R12 -> R12. */
+ .section .text.__mspabi_slli_n
.macro _slli n
.global __mspabi_slli_\n
__mspabi_slli_\n:
@@ -51,6 +52,7 @@ __mspabi_slli_\n:
RET
#endif
+ .section .text.__mspabi_slli
1: ADD.W #-1,R13
ADD.W R12,R12
.global __mspabi_slli
@@ -63,8 +65,9 @@ __mspabi_slli:
RET
#endif
-/* Logical Left Shift - R12:R13 -> R12:R13 */
+/* Logical Left Shift - R12:R13 -> R12:R13. */
+ .section .text.__mspabi_slll_n
.macro _slll n
.global __mspabi_slll_\n
__mspabi_slll_\n:
@@ -93,6 +96,7 @@ __mspabi_slll_\n:
RET
#endif
+ .section .text.__mspabi_slll
1: ADD.W #-1,R14
ADD.W R12,R12
ADDC.W R13,R13
diff --git a/libgcc/config/msp430/srai.S b/libgcc/config/msp430/srai.S
index 33c9b5e..564f798 100644
--- a/libgcc/config/msp430/srai.S
+++ b/libgcc/config/msp430/srai.S
@@ -22,13 +22,14 @@
.text
+ .section .text.__mspabi_srai_n
.macro _srai n
.global __mspabi_srai_\n
__mspabi_srai_\n:
RRA.W R12
.endm
-/* Logical Right Shift - R12 -> R12 */
+/* Arithmetic Right Shift - R12 -> R12. */
_srai 15
_srai 14
_srai 13
@@ -50,6 +51,7 @@ __mspabi_srai_\n:
RET
#endif
+ .section .text.__mspabi_srai
1: ADD.W #-1,R13
RRA.W R12,R12
.global __mspabi_srai
@@ -62,8 +64,9 @@ __mspabi_srai:
RET
#endif
-/* Logical Right Shift - R12:R13 -> R12:R13 */
+/* Arithmetic Right Shift - R12:R13 -> R12:R13. */
+ .section .text.__mspabi_sral_n
.macro _sral n
.global __mspabi_sral_\n
__mspabi_sral_\n:
@@ -92,6 +95,7 @@ __mspabi_sral_\n:
RET
#endif
+ .section .text.__mspabi_sral
1: ADD.W #-1,R14
RRA.W R13
RRC.W R12
diff --git a/libgcc/config/msp430/srli.S b/libgcc/config/msp430/srli.S
index dbe37f6..4dd32ea 100644
--- a/libgcc/config/msp430/srli.S
+++ b/libgcc/config/msp430/srli.S
@@ -22,6 +22,7 @@
.text
+ .section .text.__mspabi_srli_n
.macro _srli n
.global __mspabi_srli_\n
__mspabi_srli_\n:
@@ -29,7 +30,7 @@ __mspabi_srli_\n:
RRC.W R12
.endm
-/* Logical Right Shift - R12 -> R12 */
+/* Logical Right Shift - R12 -> R12. */
_srli 15
_srli 14
_srli 13
@@ -51,6 +52,7 @@ __mspabi_srli_\n:
RET
#endif
+ .section .text.__mspabi_srli
1: ADD.W #-1,R13
CLRC
RRC.W R12,R12
@@ -64,8 +66,9 @@ __mspabi_srli:
RET
#endif
-/* Logical Right Shift - R12:R13 -> R12:R13 */
+/* Logical Right Shift - R12:R13 -> R12:R13. */
+ .section .text.__mspabi_srll_n
.macro _srll n
.global __mspabi_srll_\n
__mspabi_srll_\n:
@@ -95,6 +98,7 @@ __mspabi_srll_\n:
RET
#endif
+ .section .text.__mspabi_srll
1: ADD.W #-1,R14
CLRC
RRC.W R13