diff options
author | Chris Lattner <sabre@nondot.org> | 2007-06-17 23:29:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-06-17 23:29:57 +0000 |
commit | 910b4b84798c814dab1d1e50c95854be8fef8772 (patch) | |
tree | 298d21dbf562b29ce52656407c11c83015f534f1 /test | |
parent | 521d5c72acb5c7b2d36c989ba51d6d7b825f79ca (diff) | |
download | external_llvm-910b4b84798c814dab1d1e50c95854be8fef8772.zip external_llvm-910b4b84798c814dab1d1e50c95854be8fef8772.tar.gz external_llvm-910b4b84798c814dab1d1e50c95854be8fef8772.tar.bz2 |
ensure we don't regress on these tests. We generate aweful code in x86-32 for
these though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/bitcast2.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bitcast2.ll b/test/CodeGen/X86/bitcast2.ll new file mode 100644 index 0000000..edf8523 --- /dev/null +++ b/test/CodeGen/X86/bitcast2.ll @@ -0,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 +} + |