linux-packaging-mono/external/llvm/test/CodeGen/X86/divide-windows-itanium.ll
Xamarin Public Jenkins (auto-signing) 8e12397d70 Imported Upstream version 5.18.0.205
Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
2018-11-16 08:20:38 +00:00

39 lines
659 B
LLVM

; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s
define i64 @f(i64 %i, i64 %j) {
%1 = sdiv i64 %i, %j
ret i64 %1
}
; CHECK-LABEL: _f:
; CHECK-NOT: calll ___divdi3
; CHECK: calll __alldiv
define i64 @g(i64 %i, i64 %j) {
%1 = udiv i64 %i, %j
ret i64 %1
}
; CHECK-LABEL: _g:
; CHECK-NOT: calll ___udivdi3
; CHECK: calll __aulldiv
define i64 @h(i64 %i, i64 %j) {
%1 = srem i64 %i, %j
ret i64 %1
}
; CHECK-LABEL: _h:
; CHECK-NOT: calll ___moddi3
; CHECK: calll __allrem
define i64 @i(i64 %i, i64 %j) {
%1 = urem i64 %i, %j
ret i64 %1
}
; CHECK-LABEL: _i:
; CHECK-NOT: calll ___umoddi3
; CHECK: calll __aullrem