search for: int_representation

Displaying 1 result from an estimated 1 matches for "int_representation".

2013 Apr 17
1
[LLVMdev] interesting IR problem related to mips 16
...ys using soft float (this optional emulation library you get with -hard-float for mips16 and is the default). So if the code returns a float, it will get converted into returning an integer which in mips abi means it will be returned in an integer register. so it becomes: int foo() { return int_representation(1.0); } However, mips32 code calling this is compiled without soft float and does not know anything about this. and will expect the return result to be in F0. So gcc will generate a call to a helper function that moves the V0 integer return register, to F0 (the floating point return register)...