summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-08-29 19:07:16 +0000
committerTim Northover <tnorthover@apple.com>2016-08-29 19:07:16 +0000
commitedb3c8ccb8785c90cee8b71c4ed8eb13b72f9ae4 (patch)
treed7fcadd47e44fb508c8b6b993e1874ef8237988e /llvm/test/CodeGen
parentfe5f89ba144f03fa10e93307988d787309d3a744 (diff)
downloadbcm5719-llvm-edb3c8ccb8785c90cee8b71c4ed8eb13b72f9ae4.tar.gz
bcm5719-llvm-edb3c8ccb8785c90cee8b71c4ed8eb13b72f9ae4.zip
GlobalISel: legalize frem to a libcall on AArch64.
llvm-svn: 279988
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
index cfd0958dae3..53af5eb92fd 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
@@ -21,6 +21,8 @@ registers:
- { id: 6, class: _ }
- { id: 7, class: _ }
- { id: 8, class: _ }
+ - { id: 9, class: _ }
+ - { id: 10, class: _ }
body: |
bb.0.entry:
liveins: %x0, %x1, %x2, %x3
@@ -49,4 +51,16 @@ body: |
%7(8) = G_TRUNC { s8, s64 } %1
%8(8) = G_SREM s8 %6, %7
+ ; CHECK: %d0 = COPY %0
+ ; CHECK: %d1 = COPY %1
+ ; CHECK: BL $fmod, csr_aarch64_aapcs, implicit-def %lr, implicit %sp, implicit %d0, implicit %d1, implicit-def %d0
+ ; CHECK: %9(64) = COPY %d0
+ %9(64) = G_FREM s64 %0, %1
+
+ ; CHECK: %s0 = COPY %3
+ ; CHECK: %s1 = COPY %4
+ ; CHECK: BL $fmodf, csr_aarch64_aapcs, implicit-def %lr, implicit %sp, implicit %s0, implicit %s1, implicit-def %s0
+ ; CHECK: %10(32) = COPY %s0
+ %10(32) = G_FREM s32 %3, %4
+
...
OpenPOWER on IntegriCloud