[llvm-commits] [compiler-rt] r86075 - in /compiler-rt/trunk/lib: i386/floatdidf.S i386/floatdixf.S i386/floatundidf.S i386/floatundisf.S i386/floatundixf.S x86_64/floatundidf.S x86_64/floatundisf.S x86_64/floatundixf.S
Shantonu Sen
ssen at apple.com
Wed Nov 4 15:57:44 PST 2009
If newer binutils supports ".p2align 3", you can use that too. That should work on Darwin as well without requiring a conditional.
Shantonu Sen
ssen at apple.com
Sent from my Mac Pro
On Nov 4, 2009, at 3:52 PM, Edward O'Callaghan wrote:
> Author: evocallaghan
> Date: Wed Nov 4 17:52:51 2009
> New Revision: 86075
>
> URL: http://llvm.org/viewvc/llvm-project?rev=86075&view=rev
> Log:
> Fix x86/x64 on Linux, Credit to Rafael Espindola.
>
> Modified:
> compiler-rt/trunk/lib/i386/floatdidf.S
> compiler-rt/trunk/lib/i386/floatdixf.S
> compiler-rt/trunk/lib/i386/floatundidf.S
> compiler-rt/trunk/lib/i386/floatundisf.S
> compiler-rt/trunk/lib/i386/floatundixf.S
> compiler-rt/trunk/lib/x86_64/floatundidf.S
> compiler-rt/trunk/lib/x86_64/floatundisf.S
> compiler-rt/trunk/lib/x86_64/floatundixf.S
>
> Modified: compiler-rt/trunk/lib/i386/floatdidf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/i386/floatdidf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/i386/floatdidf.S (original)
> +++ compiler-rt/trunk/lib/i386/floatdidf.S Wed Nov 4 17:52:51 2009
> @@ -7,7 +7,9 @@
>
> #ifdef __i386__
>
> +#ifndef __ELF__
> .const
> +#endif
> .align 4
> twop52: .quad 0x4330000000000000
> twop32: .quad 0x41f0000000000000
>
> Modified: compiler-rt/trunk/lib/i386/floatdixf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/i386/floatdixf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/i386/floatdixf.S (original)
> +++ compiler-rt/trunk/lib/i386/floatdixf.S Wed Nov 4 17:52:51 2009
> @@ -26,4 +26,4 @@
> fildll 4(%esp)
> ret
>
> -#endif // __i386__
> \ No newline at end of file
> +#endif // __i386__
>
> Modified: compiler-rt/trunk/lib/i386/floatundidf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/i386/floatundidf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/i386/floatundidf.S (original)
> +++ compiler-rt/trunk/lib/i386/floatundidf.S Wed Nov 4 17:52:51 2009
> @@ -17,7 +17,9 @@
>
> #ifdef __i386__
>
> +#ifndef __ELF__
> .const
> +#endif
> .align 4
> twop52: .quad 0x4330000000000000
> twop84_plus_twop52:
>
> Modified: compiler-rt/trunk/lib/i386/floatundisf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/i386/floatundisf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/i386/floatundisf.S (original)
> +++ compiler-rt/trunk/lib/i386/floatundisf.S Wed Nov 4 17:52:51 2009
> @@ -51,8 +51,12 @@
>
> #ifdef __i386__
>
> +#ifndef __ELF__
> .const
> .align 3
> +#else
> +.align 8
> +#endif
> twop52: .quad 0x4330000000000000
> .quad 0x0000000000000fff
> sticky: .quad 0x0000000000000000
>
> Modified: compiler-rt/trunk/lib/i386/floatundixf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/i386/floatundixf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/i386/floatundixf.S (original)
> +++ compiler-rt/trunk/lib/i386/floatundixf.S Wed Nov 4 17:52:51 2009
> @@ -7,7 +7,9 @@
>
> #ifdef __i386__
>
> +#ifndef __ELF__
> .const
> +#endif
> .align 4
> twop52: .quad 0x4330000000000000
> twop84_plus_twop52_neg:
> @@ -32,4 +34,4 @@
> faddl 4(%esp)
> ret
>
> -#endif // __i386__
> \ No newline at end of file
> +#endif // __i386__
>
> Modified: compiler-rt/trunk/lib/x86_64/floatundidf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatundidf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/x86_64/floatundidf.S (original)
> +++ compiler-rt/trunk/lib/x86_64/floatundidf.S Wed Nov 4 17:52:51 2009
> @@ -17,7 +17,9 @@
>
> #ifdef __x86_64__
>
> +#ifndef __ELF__
> .const
> +#endif
> .align 4
> twop52: .quad 0x4330000000000000
> twop84_plus_twop52:
> @@ -38,4 +40,4 @@
> addsd %xmm1, %xmm0 // a_hi + a_lo (round happens here)
> ret
>
> -#endif // __x86_64__
> \ No newline at end of file
> +#endif // __x86_64__
>
> Modified: compiler-rt/trunk/lib/x86_64/floatundisf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatundisf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/x86_64/floatundisf.S (original)
> +++ compiler-rt/trunk/lib/x86_64/floatundisf.S Wed Nov 4 17:52:51 2009
> @@ -7,7 +7,9 @@
>
> #ifdef __x86_64__
>
> +#ifndef __ELF__
> .literal4
> +#endif
> two: .single 2.0
>
> #define REL_ADDR(_a) (_a)(%rip)
> @@ -28,4 +30,4 @@
> mulss REL_ADDR(two), %xmm0
> ret
>
> -#endif // __x86_64__
> \ No newline at end of file
> +#endif // __x86_64__
>
> Modified: compiler-rt/trunk/lib/x86_64/floatundixf.S
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatundixf.S?rev=86075&r1=86074&r2=86075&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/x86_64/floatundixf.S (original)
> +++ compiler-rt/trunk/lib/x86_64/floatundixf.S Wed Nov 4 17:52:51 2009
> @@ -7,7 +7,9 @@
>
> #ifdef __x86_64__
>
> +#ifndef __ELF__
> .const
> +#endif
> .align 4
> twop64: .quad 0x43f0000000000000
>
> @@ -57,4 +59,4 @@
>
> #endif // __x86_64__
>
> -*/
> \ No newline at end of file
> +*/
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list