xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/mips64sinttofpsf.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mips64 -mcpu=mips64r2 -mattr=+soft-float -O0 < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdefine double @foo() #0 {
5*9880d681SAndroid Build Coastguard Workerentry:
6*9880d681SAndroid Build Coastguard Worker  %x = alloca i32, align 4
7*9880d681SAndroid Build Coastguard Worker  store volatile i32 -32, i32* %x, align 4
8*9880d681SAndroid Build Coastguard Worker  %0 = load volatile i32, i32* %x, align 4
9*9880d681SAndroid Build Coastguard Worker  %conv = sitofp i32 %0 to double
10*9880d681SAndroid Build Coastguard Worker  ret double %conv
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker; CHECK-NOT:        dsll
13*9880d681SAndroid Build Coastguard Worker; CHECK-NOT:        dsrl
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker}
16