summaryrefslogtreecommitdiff
path: root/lib/x86_64
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-10-27 17:50:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-10-27 17:50:21 +0000
commitb4b1e8c5085cf83a50242057775a33ae4323d402 (patch)
treec1c5831823bef0cd836b6c129b0ecb4b96af0e16 /lib/x86_64
parent19336a2d6b9b375ac106125950f4ff09742d1aec (diff)
downloadcompiler-rt-b4b1e8c5085cf83a50242057775a33ae4323d402.tar.gz
compiler-rt-b4b1e8c5085cf83a50242057775a33ae4323d402.tar.bz2
compiler-rt-b4b1e8c5085cf83a50242057775a33ae4323d402.tar.xz
Switch to using DEFINE_COMPILERRT_[PRIVATE_]FUNCTION to define function symbols inside .S files.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@85264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/x86_64')
-rw-r--r--lib/x86_64/floatundidf.S3
-rw-r--r--lib/x86_64/floatundisf.S3
-rw-r--r--lib/x86_64/floatundixf.S6
3 files changed, 4 insertions, 8 deletions
diff --git a/lib/x86_64/floatundidf.S b/lib/x86_64/floatundidf.S
index fea46af8..419a6e1b 100644
--- a/lib/x86_64/floatundidf.S
+++ b/lib/x86_64/floatundidf.S
@@ -28,8 +28,7 @@ twop84: .quad 0x4530000000000000
.text
.align 4
-.globl ___floatundidf
-___floatundidf:
+DEFINE_COMPILERRT_FUNCTION(__floatundidf)
movd %edi, %xmm0 // low 32 bits of a
shrq $32, %rdi // high 32 bits of a
orq REL_ADDR(twop84), %rdi // 0x1p84 + a_hi (no rounding occurs)
diff --git a/lib/x86_64/floatundisf.S b/lib/x86_64/floatundisf.S
index 4cbbf201..76b54ebc 100644
--- a/lib/x86_64/floatundisf.S
+++ b/lib/x86_64/floatundisf.S
@@ -14,8 +14,7 @@ two: .single 2.0
.text
.align 4
-.globl ___floatundisf
-___floatundisf:
+DEFINE_COMPILERRT_FUNCTION(__floatundisf)
movq $1, %rsi
testq %rdi, %rdi
js 1f
diff --git a/lib/x86_64/floatundixf.S b/lib/x86_64/floatundixf.S
index 47a0ff4f..5f484855 100644
--- a/lib/x86_64/floatundixf.S
+++ b/lib/x86_64/floatundixf.S
@@ -15,8 +15,7 @@ twop64: .quad 0x43f0000000000000
.text
.align 4
-.globl ___floatundixf
-___floatundixf:
+DEFINE_COMPILERRT_FUNCTION(__floatundixf)
movq %rdi, -8(%rsp)
fildq -8(%rsp)
test %rdi, %rdi
@@ -44,8 +43,7 @@ twop84: .quad 0x4530000000000000
.text
.align 4
-.globl ___floatundixf
-___floatundixf:
+DEFINE_COMPILERRT_FUNCTION(__floatundixf)
movl %edi, %esi // low 32 bits of input
shrq $32, %rdi // hi 32 bits of input
orq REL_ADDR(twop84), %rdi // 2^84 + hi (as a double)