diff options
author | Dan Gohman <gohman@apple.com> | 2007-10-29 20:44:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-10-29 20:44:42 +0000 |
commit | ae95d72a5296961cc4ec04cc87c3753653f6f3b1 (patch) | |
tree | 76ffd76ab64979cc27adf0eb8950f994fdb038ff /llvm/test/CodeGen | |
parent | 6d845f04142e6195374c79a334a05859d91c252f (diff) | |
download | bcm5719-llvm-ae95d72a5296961cc4ec04cc87c3753653f6f3b1.tar.gz bcm5719-llvm-ae95d72a5296961cc4ec04cc87c3753653f6f3b1.zip |
Fix a DAGCombiner abort on a bitcast from a scalar to a vector.
llvm-svn: 43470
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/X86/bitcast-int-to-vector.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll b/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll new file mode 100644 index 00000000000..370bec09848 --- /dev/null +++ b/llvm/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 +} |