[llvm-commits] CVS: llvm/test/Regression/CodeGen/ARM/div.ll

Rafael Espindola rafael.espindola at gmail.com
Tue Oct 17 14:05:49 PDT 2006



Changes in directory llvm/test/Regression/CodeGen/ARM:

div.ll added (r1.1)
---
Log message:

expand ISD::SDIV, ISD::UDIV, ISD::SREM and ISD::UREM


---
Diffs of the changes:  (+29 -0)

 div.ll |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+)


Index: llvm/test/Regression/CodeGen/ARM/div.ll
diff -c /dev/null llvm/test/Regression/CodeGen/ARM/div.ll:1.1
*** /dev/null	Tue Oct 17 16:05:43 2006
--- llvm/test/Regression/CodeGen/ARM/div.ll	Tue Oct 17 16:05:33 2006
***************
*** 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
+ }






More information about the llvm-commits mailing list