Commit 6342b2c5 by Oleg Endo

lib1funcs.S: Check value of __SHMEDIA__ instead of checking whether it's defined.

libgcc/
	* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
	whether it's defined.

From-SVN: r218190
parent 565aed1a
2014-11-30 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/lib1funcs.S: Check value of __SHMEDIA__ instead of checking
whether it's defined.
2014-11-27 Ilya Tocar <ilya.tocar@intel.com> 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
* config/i386/cpuinfo.c (processor_features): Add FEATURE_AVX512F. * config/i386/cpuinfo.c (processor_features): Add FEATURE_AVX512F.
......
...@@ -1278,7 +1278,7 @@ GLOBAL(sdivsi3_2): ...@@ -1278,7 +1278,7 @@ GLOBAL(sdivsi3_2):
#endif #endif
ENDFUNC(GLOBAL(sdivsi3_2)) ENDFUNC(GLOBAL(sdivsi3_2))
#endif #endif
#elif defined __SHMEDIA__ #elif __SHMEDIA__
/* m5compact-nofpu */ /* m5compact-nofpu */
// clobbered: r18,r19,r20,r21,r25,tr0,tr1,tr2 // clobbered: r18,r19,r20,r21,r25,tr0,tr1,tr2
.mode SHmedia .mode SHmedia
...@@ -1683,7 +1683,7 @@ GLOBAL(udivsi3): ...@@ -1683,7 +1683,7 @@ GLOBAL(udivsi3):
add.l r18,r25,r0 add.l r18,r25,r0
blink tr0,r63 blink tr0,r63
#endif #endif
#elif defined (__SHMEDIA__) #elif __SHMEDIA__
/* m5compact-nofpu - more emphasis on code size than on speed, but don't /* m5compact-nofpu - more emphasis on code size than on speed, but don't
ignore speed altogether - div1 needs 9 cycles, subc 7 and rotcl 4. ignore speed altogether - div1 needs 9 cycles, subc 7 and rotcl 4.
So use a short shmedia loop. */ So use a short shmedia loop. */
...@@ -1707,7 +1707,7 @@ LOCAL(udivsi3_dontsub): ...@@ -1707,7 +1707,7 @@ LOCAL(udivsi3_dontsub):
bnei r25,-32,tr1 bnei r25,-32,tr1
add.l r20,r63,r0 add.l r20,r63,r0
blink tr2,r63 blink tr2,r63
#else /* ! defined (__SHMEDIA__) */ #else /* ! __SHMEDIA__ */
LOCAL(div8): LOCAL(div8):
div1 r5,r4 div1 r5,r4
LOCAL(div7): LOCAL(div7):
...@@ -1773,7 +1773,7 @@ LOCAL(large_divisor): ...@@ -1773,7 +1773,7 @@ LOCAL(large_divisor):
#endif /* L_udivsi3 */ #endif /* L_udivsi3 */
#ifdef L_udivdi3 #ifdef L_udivdi3
#ifdef __SHMEDIA__ #if __SHMEDIA__
.mode SHmedia .mode SHmedia
.section .text..SHmedia32,"ax" .section .text..SHmedia32,"ax"
.align 2 .align 2
...@@ -1901,7 +1901,7 @@ LOCAL(no_lo_adj): ...@@ -1901,7 +1901,7 @@ LOCAL(no_lo_adj):
#endif /* L_udivdi3 */ #endif /* L_udivdi3 */
#ifdef L_divdi3 #ifdef L_divdi3
#ifdef __SHMEDIA__ #if __SHMEDIA__
.mode SHmedia .mode SHmedia
.section .text..SHmedia32,"ax" .section .text..SHmedia32,"ax"
.align 2 .align 2
...@@ -1925,7 +1925,7 @@ GLOBAL(divdi3): ...@@ -1925,7 +1925,7 @@ GLOBAL(divdi3):
#endif /* L_divdi3 */ #endif /* L_divdi3 */
#ifdef L_umoddi3 #ifdef L_umoddi3
#ifdef __SHMEDIA__ #if __SHMEDIA__
.mode SHmedia .mode SHmedia
.section .text..SHmedia32,"ax" .section .text..SHmedia32,"ax"
.align 2 .align 2
...@@ -2054,7 +2054,7 @@ LOCAL(no_lo_adj): ...@@ -2054,7 +2054,7 @@ LOCAL(no_lo_adj):
#endif /* L_umoddi3 */ #endif /* L_umoddi3 */
#ifdef L_moddi3 #ifdef L_moddi3
#ifdef __SHMEDIA__ #if __SHMEDIA__
.mode SHmedia .mode SHmedia
.section .text..SHmedia32,"ax" .section .text..SHmedia32,"ax"
.align 2 .align 2
...@@ -3142,7 +3142,7 @@ GLOBAL(GCC_pop_shmedia_regs_nofpu): ...@@ -3142,7 +3142,7 @@ GLOBAL(GCC_pop_shmedia_regs_nofpu):
#ifdef L_div_table #ifdef L_div_table
#if __SH5__ #if __SH5__
#if defined(__pic__) && defined(__SHMEDIA__) #if defined(__pic__) && __SHMEDIA__
.global GLOBAL(sdivsi3) .global GLOBAL(sdivsi3)
FUNC(GLOBAL(sdivsi3)) FUNC(GLOBAL(sdivsi3))
#if __SH5__ == 32 #if __SH5__ == 32
...@@ -3215,7 +3215,7 @@ Defects for bias -330: ...@@ -3215,7 +3215,7 @@ Defects for bias -330:
#else /* ! __pic__ || ! __SHMEDIA__ */ #else /* ! __pic__ || ! __SHMEDIA__ */
.section .rodata .section .rodata
#endif /* __pic__ */ #endif /* __pic__ */
#if defined(TEXT_DATA_BUG) && defined(__pic__) && defined(__SHMEDIA__) #if defined(TEXT_DATA_BUG) && defined(__pic__) && __SHMEDIA__
.balign 2 .balign 2
.type Local_div_table,@object .type Local_div_table,@object
.size Local_div_table,128 .size Local_div_table,128
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment