Add a few patterns to match allzeros without having to use the fp unit.
[oota-llvm.git] / test / CodeGen / X86 / avx-256-cvt.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3 ; CHECK: vcvtdq2ps %ymm
4 define <8 x float> @funcA(<8 x i32> %a) nounwind {
5   %b = sitofp <8 x i32> %a to <8 x float>
6   ret <8 x float> %b
7 }
8
9 ; CHECK: vcvttps2dq %ymm
10 define <8 x i32> @funcB(<8 x float> %a) nounwind {
11   %b = fptosi <8 x float> %a to <8 x i32>
12   ret <8 x i32> %b
13 }
14