[llvm-commits] CVS: llvm/test/Regression/CodeGen/PowerPC/i64_fp.ll

Nate Begeman natebegeman at mac.com
Tue Sep 6 15:23:26 PDT 2005



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

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

Test the new 64bit i64<->fp functionality


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

 i64_fp.ll |   17 +++++++++++++++++
 1 files changed, 17 insertions(+)


Index: llvm/test/Regression/CodeGen/PowerPC/i64_fp.ll
diff -c /dev/null llvm/test/Regression/CodeGen/PowerPC/i64_fp.ll:1.1
*** /dev/null	Tue Sep  6 17:23:25 2005
--- llvm/test/Regression/CodeGen/PowerPC/i64_fp.ll	Tue Sep  6 17:23:15 2005
***************
*** 0 ****
--- 1,17 ----
+ ; fcfid and fctid should be generated when the 64bit feature is enabled, but not 
+ ; otherwise.
+ 
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mattr=+64bit | grep 'fcfid' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mattr=+64bit | grep 'fctidz' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep 'fcfid' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep 'fctidz' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | not grep 'fcfid' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | not grep 'fctidz' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g4 | not grep 'fcfid' &&
+ ; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g4 | not grep 'fctidz'
+ 
+ double %X(double %Y) {
+     %A = cast double %Y to long
+     %B = cast long %A to double
+ 	ret double %B
+ }






More information about the llvm-commits mailing list