1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mcpu=corei7 -mtriple=x86_64-pc-win32 | FileCheck %s
3
4define <2 x i32> @vcast(<2 x float> %a, <2 x float> %b) {
5; CHECK-LABEL: vcast:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    pmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
8; CHECK-NEXT:    pmovzxdq {{.*#+}} xmm1 = mem[0],zero,mem[1],zero
9; CHECK-NEXT:    psubq %xmm1, %xmm0
10; CHECK-NEXT:    retq
11  %af = bitcast <2 x float> %a to <2 x i32>
12  %bf = bitcast <2 x float> %b to <2 x i32>
13  %x = sub <2 x i32> %af, %bf
14  ret <2 x i32> %x
15}
16
17