summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSumanth Gundapaneni <sgundapa@codeaurora.org>2015-07-31 00:45:12 +0000
committerSumanth Gundapaneni <sgundapa@codeaurora.org>2015-07-31 00:45:12 +0000
commit532a13691c97c60387e6b0d0e1e88a6d92dbc555 (patch)
tree1035cfb1c037ac67fdd26d77a127c211d49c6335 /llvm/test
parentd7bdc27b121e4a163896246ff7846f6799bef1e5 (diff)
downloadbcm5719-llvm-532a13691c97c60387e6b0d0e1e88a6d92dbc555.tar.gz
bcm5719-llvm-532a13691c97c60387e6b0d0e1e88a6d92dbc555.zip
[ARM] Lower modulo operation to generate __aeabi_divmod on Android
For a modulo (reminder) operation, clang -target armv7-none-linux-gnueabi generates "__modsi3" clang -target armv7-none-eabi generates "__aeabi_idivmod" clang -target armv7-linux-androideabi generates "__modsi3" Android bionic libc doesn't provide a __modsi3, instead it provides a "__aeabi_idivmod". This patch fixes the LLVM ARMISelLowering to generate the correct call when ever there is a modulo operation. Differential Revision: http://reviews.llvm.org/D11661 llvm-svn: 243717
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/divmod-eabi.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/divmod-eabi.ll b/llvm/test/CodeGen/ARM/divmod-eabi.ll
index 7f72048d391..e630a95368e 100644
--- a/llvm/test/CodeGen/ARM/divmod-eabi.ll
+++ b/llvm/test/CodeGen/ARM/divmod-eabi.ll
@@ -1,5 +1,7 @@
; RUN: llc -mtriple armv7-none-eabi %s -o - | FileCheck %s --check-prefix=EABI
; RUN: llc -mtriple armv7-none-eabihf %s -o - | FileCheck %s --check-prefix=EABI
+; Both "none-eabi" and "androideabi" must lower SREM/UREM to __aeabi_{u,i}divmod
+; RUN: llc -mtriple armv7-linux-androideabi %s -o - | FileCheck %s --check-prefix=EABI
; RUN: llc -mtriple armv7-linux-gnueabi %s -o - | FileCheck %s --check-prefix=GNU
; RUN: llc -mtriple armv7-apple-darwin %s -o - | FileCheck %s --check-prefix=DARWIN
; FIXME: long-term, we will use "-apple-macho" and won't need this exception:
OpenPOWER on IntegriCloud