[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/bitcast.ll
Chris Lattner
sabre at nondot.org
Tue Dec 5 10:22:07 PST 2006
Changes in directory llvm/test/Regression/CodeGen/X86:
bitcast.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+24 -0)
bitcast.ll | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+)
Index: llvm/test/Regression/CodeGen/X86/bitcast.ll
diff -c /dev/null llvm/test/Regression/CodeGen/X86/bitcast.ll:1.1
*** /dev/null Tue Dec 5 12:22:02 2006
--- llvm/test/Regression/CodeGen/X86/bitcast.ll Tue Dec 5 12:21:52 2006
***************
*** 0 ****
--- 1,24 ----
+ ; RUN: llvm-as < %s | llc &&
+ ; RUN: llvm-as < %s | llc -march=x86 &&
+ ; RUN: llvm-as < %s | llc -march=x86-64
+ ; PR1033
+
+ long %test1(double %t) {
+ %u = bitcast double %t to long
+ ret long %u
+ }
+
+ double %test2(long %t) {
+ %u = bitcast long %t to double
+ ret double %u
+ }
+
+ int %test3(float %t) {
+ %u = bitcast float %t to int
+ ret int %u
+ }
+
+ float %test4(int %t) {
+ %u = bitcast int %t to float
+ ret float %u
+ }
More information about the llvm-commits
mailing list