summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/bitcast.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-05 18:21:52 +0000
committerChris Lattner <sabre@nondot.org>2006-12-05 18:21:52 +0000
commitade2f54d2beb38aab3f2eb6e306450788ee94dd0 (patch)
tree8a53d7db88db13b832e00ce27c9d69bb5ef560fc /test/CodeGen/X86/bitcast.ll
parent97815c6b9c789ba741106d300f94f0c10ba6d978 (diff)
downloadllvm-ade2f54d2beb38aab3f2eb6e306450788ee94dd0.tar.gz
llvm-ade2f54d2beb38aab3f2eb6e306450788ee94dd0.tar.bz2
llvm-ade2f54d2beb38aab3f2eb6e306450788ee94dd0.tar.xz
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/bitcast.ll')
-rw-r--r--test/CodeGen/X86/bitcast.ll24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bitcast.ll b/test/CodeGen/X86/bitcast.ll
new file mode 100644
index 0000000000..d0d3bd4bcb
--- /dev/null
+++ b/test/CodeGen/X86/bitcast.ll
@@ -0,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
+}