[PATCH] [COMPILER-RT] Enable __multi3 when using aarch64 architecture

GuanHong Liu koviankevin at hotmail.com
Thu Feb 13 21:52:09 PST 2014


aarch64 is a 64-bit architecture, and its toolchain may generate __multi3 instruction, too

http://llvm-reviews.chandlerc.com/D2801

Files:
  lib/int_types.h
  lib/multi3.c

Index: lib/int_types.h
===================================================================
--- lib/int_types.h
+++ lib/int_types.h
@@ -56,7 +56,7 @@
     }s;
 } udwords;
 
-#if __x86_64
+#if __x86_64 || __aarch64__
 
 typedef int      ti_int __attribute__ ((mode (TI)));
 typedef unsigned tu_int __attribute__ ((mode (TI)));
Index: lib/multi3.c
===================================================================
--- lib/multi3.c
+++ lib/multi3.c
@@ -14,7 +14,7 @@
 
 #include "int_lib.h"
 
-#if __x86_64
+#if __x86_64 || __aarch64__
 
 /* Returns: a * b */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2801.1.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140213/54359168/attachment.bin>


More information about the llvm-commits mailing list