From 226f8bc38c7d1916518602126c7091812265bf6b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Oct 2006 21:05:33 +0000 Subject: expand ISD::SDIV, ISD::UDIV, ISD::SREM and ISD::UREM git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31014 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/div.ll | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/CodeGen/ARM/div.ll (limited to 'test/CodeGen/ARM/div.ll') diff --git a/test/CodeGen/ARM/div.ll b/test/CodeGen/ARM/div.ll new file mode 100644 index 0000000..1d78394 --- /dev/null +++ b/test/CodeGen/ARM/div.ll @@ -0,0 +1,29 @@ +; RUN: llvm-as < %s | llc -march=arm && +; RUN: llvm-as < %s | llc -march=arm | grep __divsi3 && +; RUN: llvm-as < %s | llc -march=arm | grep __udivsi3 && +; RUN: llvm-as < %s | llc -march=arm | grep __modsi3 && +; RUN: llvm-as < %s | llc -march=arm | grep __umodsi3 + +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 +} -- cgit v1.1