xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/2008-08-04-Bitconvert.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine float @A(i32 %u) nounwind  {
4*9880d681SAndroid Build Coastguard Workerentry:
5*9880d681SAndroid Build Coastguard Worker; CHECK: mtc1
6*9880d681SAndroid Build Coastguard Worker  bitcast i32 %u to float
7*9880d681SAndroid Build Coastguard Worker  ret float %0
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Workerdefine i32 @B(float %u) nounwind  {
11*9880d681SAndroid Build Coastguard Workerentry:
12*9880d681SAndroid Build Coastguard Worker; CHECK: mfc1
13*9880d681SAndroid Build Coastguard Worker  bitcast float %u to i32
14*9880d681SAndroid Build Coastguard Worker  ret i32 %0
15*9880d681SAndroid Build Coastguard Worker}
16