llvm-for-llvmta/test/CodeGen/ARM/Windows/division-range.ll

16 lines
358 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -O0 -mtriple thumbv7--windows-itanium -filetype obj -o - %s | llvm-objdump -d - | FileCheck %s
declare i32 @llvm.arm.space(i32, i32)
define arm_aapcs_vfpcc i32 @f(i32 %n, i32 %d) local_unnamed_addr {
entry:
%div = sdiv i32 %n, %d
call i32 @llvm.arm.space(i32 128, i32 undef)
ret i32 %div
}
; CHECK: cmp r1, #0
; CHECK: beq #
; CHECK: bl