Changes in directory llvm/test/CodeGen/X86:
bitcast2.ll added (r1.1) --- Log message: ensure we don't regress on these tests. We generate aweful code in x86-32 for these though. --- Diffs of the changes: (+13 -0) bitcast2.ll | 13 +++++++++++++ 1 files changed, 13 insertions(+) Index: llvm/test/CodeGen/X86/bitcast2.ll diff -c /dev/null llvm/test/CodeGen/X86/bitcast2.ll:1.1 *** /dev/null Sun Jun 17 18:30:07 2007 --- llvm/test/CodeGen/X86/bitcast2.ll Sun Jun 17 18:29:57 2007 *************** *** 0 **** --- 1,13 ---- + ; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | wc -l | grep 2 + ; RUN: llvm-as < %s | llc -march=x86-64 | not grep rsp + + define i64 @test1(double %A) { + %B = bitcast double %A to i64 + ret i64 %B + } + + define double @test2(i64 %A) { + %B = bitcast i64 %A to double + ret double %B + } + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits