Test case for PR1033, x86-64 code gen fails on bitcast.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 18:24:56 +0000 (18:24 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 4 Dec 2006 18:24:56 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32185 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2006-12-04-X86-64-Bitcast.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/2006-12-04-X86-64-Bitcast.ll b/test/CodeGen/X86/2006-12-04-X86-64-Bitcast.ll
new file mode 100644 (file)
index 0000000..aacc1df
--- /dev/null
@@ -0,0 +1,12 @@
+; PR1033
+; RUN: llvm-as < %s | llc -march=x86-64
+long %p(double %t) {
+  %u = bitcast double %t to long
+  ret long %u
+}
+
+double %q(long %t) {
+  %u = bitcast long %t to double
+  ret double %u
+}
+