[llvm-commits] CVS: llvm/test/CodeGen/ARM/fptoint.ll
Dale Johannesen
dalej at apple.com
Thu May 3 13:55:05 PDT 2007
Changes in directory llvm/test/CodeGen/ARM:
fptoint.ll added (r1.1)
---
Log message:
Evan's patch to avoid FPreg->intreg copy for cvt; store to mem
---
Diffs of the changes: (+33 -0)
fptoint.ll | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+)
Index: llvm/test/CodeGen/ARM/fptoint.ll
diff -c /dev/null llvm/test/CodeGen/ARM/fptoint.ll:1.1
*** /dev/null Thu May 3 15:54:52 2007
--- llvm/test/CodeGen/ARM/fptoint.ll Thu May 3 15:54:42 2007
***************
*** 0 ****
--- 1,33 ----
+ ; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 > %t
+ ; RUN: not grep fmrs %t
+
+ @i = weak global i32 0 ; <i32*> [#uses=2]
+ @u = weak global i32 0 ; <i32*> [#uses=2]
+
+ define void @foo5(float %x) {
+ entry:
+ %tmp1 = fptosi float %x to i32 ; <i32> [#uses=1]
+ store i32 %tmp1, i32* @i
+ ret void
+ }
+
+ define void @foo6(float %x) {
+ entry:
+ %tmp1 = fptoui float %x to i32 ; <i32> [#uses=1]
+ store i32 %tmp1, i32* @u
+ ret void
+ }
+
+ define void @foo7(double %x) {
+ entry:
+ %tmp1 = fptosi double %x to i32 ; <i32> [#uses=1]
+ store i32 %tmp1, i32* @i
+ ret void
+ }
+
+ define void @foo8(double %x) {
+ entry:
+ %tmp1 = fptoui double %x to i32 ; <i32> [#uses=1]
+ store i32 %tmp1, i32* @u
+ ret void
+ }
More information about the llvm-commits
mailing list