[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / X86 / 2012-01-18-vbitcast.ll
blob647f15730c564a8a7b8bba02fdbb6fbb2ef14b67
1 ; RUN: llc < %s -mcpu=corei7 -mtriple=x86_64-pc-win32 | FileCheck %s
3 ;CHECK-LABEL: vcast:
4 define <2 x i32> @vcast(<2 x float> %a, <2 x float> %b) {
5 ;CHECK: pmovzxdq
6 ;CHECK: pmovzxdq
7   %af = bitcast <2 x float> %a to <2 x i32>
8   %bf = bitcast <2 x float> %b to <2 x i32>
9   %x = sub <2 x i32> %af, %bf
10 ;CHECK: psubq
11   ret <2 x i32> %x
12 ;CHECK: ret