aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-10-29 20:44:42 +0000
committerDan Gohman <djg@cray.com>2007-10-29 20:44:42 +0000
commita3591d9ec3fd99ae03aee545913d5fc84fba60b8 (patch)
tree80419ddf7ecb5453c2e08d1b536c37410576c3f4 /test/CodeGen
parent031f66b80473478defa5bf095e214bf0b32cc5c4 (diff)
downloadexternal_llvm-a3591d9ec3fd99ae03aee545913d5fc84fba60b8.zip
external_llvm-a3591d9ec3fd99ae03aee545913d5fc84fba60b8.tar.gz
external_llvm-a3591d9ec3fd99ae03aee545913d5fc84fba60b8.tar.bz2
Fix a DAGCombiner abort on a bitcast from a scalar to a vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/bitcast-int-to-vector.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bitcast-int-to-vector.ll b/test/CodeGen/X86/bitcast-int-to-vector.ll
new file mode 100644
index 0000000..370bec0
--- /dev/null
+++ b/test/CodeGen/X86/bitcast-int-to-vector.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86
+
+define i1 @foo(i64 %a)
+{
+ %t = bitcast i64 %a to <2 x float>
+ %r = extractelement <2 x float> %t, i32 0
+ %s = extractelement <2 x float> %t, i32 1
+ %b = fcmp uno float %r, %s
+ ret i1 %b
+}