mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add another intrinsic that LLVM gives an incorrect prototype to.
I need to go through all the runtime routine list and see if there are any more I need to add for mips16 floating point. Prototypes must be correct or else I don't know to add a helper function call. llvm-svn: 188106
This commit is contained in:
parent
9aac3bd709
commit
d4cb39c73a
@ -90,6 +90,7 @@ static const Mips16Libcall HardFloatLibCalls[] = {
|
||||
};
|
||||
|
||||
static const Mips16IntrinsicHelperType Mips16IntrinsicHelper[] = {
|
||||
{"__fixunsdfsi", "__mips16_call_stub_2" },
|
||||
{"ceil", "__mips16_call_stub_df_2"},
|
||||
{"ceilf", "__mips16_call_stub_sf_1"},
|
||||
{"copysign", "__mips16_call_stub_df_10"},
|
||||
|
18
test/CodeGen/Mips/fixdfsf.ll
Normal file
18
test/CodeGen/Mips/fixdfsf.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic1
|
||||
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic2
|
||||
|
||||
@x = common global double 0.000000e+00, align 8
|
||||
@y = common global i32 0, align 4
|
||||
|
||||
; Function Attrs: nounwind optsize
|
||||
define void @foo() {
|
||||
entry:
|
||||
%0 = load double* @x, align 8
|
||||
%conv = fptoui double %0 to i32
|
||||
store i32 %conv, i32* @y, align 4
|
||||
; pic1: lw ${{[0-9]+}}, %call16(__fixunsdfsi)(${{[0-9]+}})
|
||||
; pic2: lw ${{[0-9]+}}, %got(__mips16_call_stub_2)(${{[0-9]+}})
|
||||
ret void
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user