xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine i1 @foo(i64 %a)
4*9880d681SAndroid Build Coastguard Worker{
5*9880d681SAndroid Build Coastguard Worker  %t = bitcast i64 %a to <2 x float>
6*9880d681SAndroid Build Coastguard Worker  %r = extractelement <2 x float> %t, i32 0
7*9880d681SAndroid Build Coastguard Worker  %s = extractelement <2 x float> %t, i32 1
8*9880d681SAndroid Build Coastguard Worker  %b = fcmp uno float %r, %s
9*9880d681SAndroid Build Coastguard Worker  ret i1 %b
10*9880d681SAndroid Build Coastguard Worker}
11