xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2012-01-18-vbitcast.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86-64 -mcpu=corei7 -mtriple=x86_64-pc-win32 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker;CHECK-LABEL: vcast:
4*9880d681SAndroid Build Coastguard Workerdefine <2 x i32> @vcast(<2 x float> %a, <2 x float> %b) {
5*9880d681SAndroid Build Coastguard Worker;CHECK: pmovzxdq
6*9880d681SAndroid Build Coastguard Worker;CHECK: pmovzxdq
7*9880d681SAndroid Build Coastguard Worker  %af = bitcast <2 x float> %a to <2 x i32>
8*9880d681SAndroid Build Coastguard Worker  %bf = bitcast <2 x float> %b to <2 x i32>
9*9880d681SAndroid Build Coastguard Worker  %x = sub <2 x i32> %af, %bf
10*9880d681SAndroid Build Coastguard Worker;CHECK: psubq
11*9880d681SAndroid Build Coastguard Worker  ret <2 x i32> %x
12*9880d681SAndroid Build Coastguard Worker;CHECK: ret
13*9880d681SAndroid Build Coastguard Worker}
14*9880d681SAndroid Build Coastguard Worker
15