summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Liao <michael.liao@intel.com>2013-02-25 23:01:03 +0000
committerMichael Liao <michael.liao@intel.com>2013-02-25 23:01:03 +0000
commit5e6e15caa79c30e155665e58b81540ec15e52051 (patch)
treec567b8886c4d1cc5f492a7744bb68a655642600b /test
parentb90cc2fa0b50321e32786e87f8425658d88982ee (diff)
Fix PR10499
- Check whether SSE is available before lowering all 1s vector building with PCMPEQD, which is only available from SSE2 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/pr10499.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr10499.ll b/test/CodeGen/X86/pr10499.ll
new file mode 100644
index 0000000000..f9cc747e49
--- /dev/null
+++ b/test/CodeGen/X86/pr10499.ll
@@ -0,0 +1,14 @@
+; RUN: llc < %s -mtriple=x86_64-pc-linux -mcpu=corei7-avx -mattr=-sse2
+
+; No check as PR10499 is a crashing bug.
+
+define void @autogen_24438_500() {
+BB:
+ %I = insertelement <8 x i32> undef, i32 -1, i32 4
+ %BC = bitcast <8 x i32> %I to <8 x float>
+ br label %CF
+
+CF: ; preds = %CF, %BB
+ %ZE = fpext <8 x float> %BC to <8 x double>
+ br label %CF
+}