2006-12-02 04:23:10 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __divsi3 &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __udivsi3 &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __modsi3 &&
|
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep __umodsi3
|
2006-10-17 21:05:33 +00:00
|
|
|
|
|
|
|
int %f1(int %a, int %b) {
|
|
|
|
entry:
|
|
|
|
%tmp1 = div int %a, %b
|
|
|
|
ret int %tmp1
|
|
|
|
}
|
|
|
|
|
|
|
|
uint %f2(uint %a, uint %b) {
|
|
|
|
entry:
|
|
|
|
%tmp1 = div uint %a, %b
|
|
|
|
ret uint %tmp1
|
|
|
|
}
|
|
|
|
|
|
|
|
int %f3(int %a, int %b) {
|
|
|
|
entry:
|
|
|
|
%tmp1 = rem int %a, %b
|
|
|
|
ret int %tmp1
|
|
|
|
}
|
|
|
|
|
|
|
|
uint %f4(uint %a, uint %b) {
|
|
|
|
entry:
|
|
|
|
%tmp1 = rem uint %a, %b
|
|
|
|
ret uint %tmp1
|
|
|
|
}
|