[LLVMdev] mips16 hard float puzzle
Eli Friedman
eli.friedman at gmail.com
Tue Jan 8 13:48:55 PST 2013
On Mon, Jan 7, 2013 at 6:07 PM, reed kotler <rkotler at mips.com> wrote:
>
> For example:
>
> /home/rkotler/llvm/install/bin/llc -mcpu=mips16 hf16_2.ll -march=mipsel
> -relocation-model=pic -o hf16_2.s -O3 -mips16-hard-float -soft-float
Try something like the following:
float f;
double test(void* fptr) {
f = ((float(*)(float,float))fptr)(1.0, 1.0);
}
-Eli
More information about the llvm-dev
mailing list