diff options
Diffstat (limited to 'test/CodeGen/ARM/divmod-eabi.ll')
| -rw-r--r-- | test/CodeGen/ARM/divmod-eabi.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/divmod-eabi.ll b/test/CodeGen/ARM/divmod-eabi.ll index 7f72048d391e..4178af397e66 100644 --- a/test/CodeGen/ARM/divmod-eabi.ll +++ b/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: @@ -187,7 +189,7 @@ define i32 @g4(i32 %a, i32 %b) { ; DARWIN-LABEL: g4: entry: %div = sdiv i32 %a, %b -; EABI: __aeabi_idivmod +; EABI: __aeabi_idiv{{$}} ; EABI: mov [[div:r[0-9]+]], r0 ; GNU: __aeabi_idiv ; GNU: mov [[sum:r[0-9]+]], r0 |
