Add arm64 floatconversion.S (dotnet/coreclr#25597)
authorSteve MacLean <Steve.MacLean@microsoft.com>
Mon, 8 Jul 2019 21:36:31 +0000 (17:36 -0400)
committerGitHub <noreply@github.com>
Mon, 8 Jul 2019 21:36:31 +0000 (17:36 -0400)
* Add arm64 floatconversion.S

* Update comment

Commit migrated from https://github.com/dotnet/coreclr/commit/8749c016e520bcaa23c56a862fe5f57eba1b879b

src/coreclr/src/debug/di/CMakeLists.txt
src/coreclr/src/debug/di/arm64/floatconversion.S [new file with mode: 0644]

index 8b37c247f992e90f49721ee272a82fa3ae3f2198..f0a9d41ec93db9cfe358d0470542fc0738ed7c6c 100644 (file)
@@ -91,7 +91,7 @@ if(WIN32)
 elseif(CLR_CMAKE_PLATFORM_UNIX)
     add_compile_options(-fPIC)
 
-    if(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_ARM)
+    if(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_ARM64 OR CLR_CMAKE_TARGET_ARCH_ARM)
       set(CORDBDI_SOURCES_ASM_FILE
         ${ARCH_SOURCES_DIR}/floatconversion.S
       )
diff --git a/src/coreclr/src/debug/di/arm64/floatconversion.S b/src/coreclr/src/debug/di/arm64/floatconversion.S
new file mode 100644 (file)
index 0000000..1b8b480
--- /dev/null
@@ -0,0 +1,14 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+#include <unixasmmacros.inc>
+
+// Arguments
+//     input: (in X0) the _NEON128 value to be converted to a double
+//     output: the double corresponding to the _NEON128 input value
+
+LEAF_ENTRY FPFillR8, .TEXT
+        LDR     Q0, [X0]
+        ret     lr
+LEAF_END FPFillR8, .TEXT