1 ; RUN: llc -mtriple thumbv7-windows-itanium -filetype asm -o - %s | FileCheck %s
2 ; RUN: llc -mtriple thumbv7-windows-msvc -filetype asm -o - %s | FileCheck %s
4 define arm_aapcs_vfpcc i32 @sdiv32(i32 %divisor, i32 %divident) {
6 %div = sdiv i32 %divident, %divisor
10 ; CHECK-LABEL: sdiv32:
15 define arm_aapcs_vfpcc i32 @udiv32(i32 %divisor, i32 %divident) {
17 %div = udiv i32 %divident, %divisor
21 ; CHECK-LABEL: udiv32:
26 define arm_aapcs_vfpcc i64 @sdiv64(i64 %divisor, i64 %divident) {
28 %div = sdiv i64 %divident, %divisor
32 ; CHECK-LABEL: sdiv64:
33 ; CHECK: orrs.w r4, r0, r1
35 ; CHECK: bl __rt_sdiv64
38 define arm_aapcs_vfpcc i64 @udiv64(i64 %divisor, i64 %divident) {
40 %div = udiv i64 %divident, %divisor
44 ; CHECK-LABEL: udiv64:
45 ; CHECK: orrs.w r4, r0, r1
47 ; CHECK: bl __rt_udiv64