Add two patterns to match special vmovss and vmovsd cases. Also fix
[oota-llvm.git] / test / CodeGen / X86 / avx-256-cmp.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3 ; CHECK: vcmpltps %ymm
4 ; CHECK-NOT: vucomiss
5 define <8 x i32> @cmp00(<8 x float> %a, <8 x float> %b) nounwind readnone {
6   %bincmp = fcmp olt <8 x float> %a, %b
7   %s = sext <8 x i1> %bincmp to <8 x i32>
8   ret <8 x i32> %s
9 }
10
11 ; CHECK: vcmpltpd %ymm
12 ; CHECK-NOT: vucomisd
13 define <4 x i64> @cmp01(<4 x double> %a, <4 x double> %b) nounwind readnone {
14   %bincmp = fcmp olt <4 x double> %a, %b
15   %s = sext <4 x i1> %bincmp to <4 x i64>
16   ret <4 x i64> %s
17 }
18