summaryrefslogtreecommitdiff
path: root/recipes/gcc/gcc-4.2.4/ep93xx/arm-crunch-eabi-mvf0-scratch-ieee754.patch
blob: 0a8f1845ec75d6ea8db7b93ebe04b90c356b0ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Don't try to copy results into an FPA register when compiling for Maverick

Index: gcc-4.2.4/gcc/config/arm/ieee754-df.S
===================================================================
--- gcc-4.2.4.orig/gcc/config/arm/ieee754-df.S	2009-08-09 15:43:45.000000000 +0100
+++ gcc-4.2.4/gcc/config/arm/ieee754-df.S	2009-08-09 15:43:45.000000000 +0100
@@ -451,12 +451,12 @@
 ARM_FUNC_ALIAS aeabi_ul2d floatundidf
 
 	orrs	r2, r0, r1
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	mvfeqd	f0, #0.0
 #endif
 	RETc(eq)
 
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	@ For hard FPA code we want to return via the tail below so that
 	@ we can return the result in f0 as well as in r0/r1 for backwards
 	@ compatibility.
@@ -473,12 +473,12 @@
 ARM_FUNC_ALIAS aeabi_l2d floatdidf
 
 	orrs	r2, r0, r1
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	mvfeqd	f0, #0.0
 #endif
 	RETc(eq)
 
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	@ For hard FPA code we want to return via the tail below so that
 	@ we can return the result in f0 as well as in r0/r1 for backwards
 	@ compatibility.
@@ -522,7 +522,7 @@
 	add	r4, r4, r2
 	b	LSYM(Lad_p)
 
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 
 	@ Legacy code expects the result to be returned in f0.  Copy it
 	@ there as well.
Index: gcc-4.2.4/gcc/config/arm/ieee754-sf.S
===================================================================
--- gcc-4.2.4.orig/gcc/config/arm/ieee754-sf.S	2005-08-06 14:26:35.000000000 +0100
+++ gcc-4.2.4/gcc/config/arm/ieee754-sf.S	2009-08-09 15:43:45.000000000 +0100
@@ -301,7 +301,7 @@
 ARM_FUNC_ALIAS aeabi_ul2f floatundisf
 
 	orrs	r2, r0, r1
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	mvfeqs	f0, #0.0
 #endif
 	RETc(eq)
@@ -313,7 +313,7 @@
 ARM_FUNC_ALIAS aeabi_l2f floatdisf
 
 	orrs	r2, r0, r1
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	mvfeqs	f0, #0.0
 #endif
 	RETc(eq)
@@ -323,7 +323,7 @@
 	rsbs	al, al, #0
 	rsc	ah, ah, #0
 1:
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 	@ For hard FPA code we want to return via the tail below so that
 	@ we can return the result in f0 as well as in r0 for backwards
 	@ compatibility.
@@ -384,7 +384,7 @@
 	biceq	r0, r0, ip, lsr #31
 	RET
 
-#if !defined (__VFP_FP__) && !defined(__SOFTFP__)
+#if !defined (__VFP_FP__) && !defined (__MAVERICK__) && !defined(__SOFTFP__)
 
 LSYM(f0_ret):
 	str	r0, [sp, #-4]!