Reed Kotler
2014-Feb-04 21:05 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
On 02/04/2014 09:58 AM, Rafael Espíndola wrote:>> .align > > So yes, EmitValueToAlignment. > > Cheers, > Rafael >One more::: OutStreamer.EmitRawText("\t.size __call_stub_fp_" + Twine(Symbol) + ", .-__call_stub_fp_" + Twine(Symbol)); You have to make an expression???? i.e. .size __call_stub_fp___floatdidf, .-__call_stub_fp___floatdidf TIA. Reed
Reed Kotler
2014-Feb-04 21:22 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
On 02/04/2014 01:05 PM, Reed Kotler wrote:> On 02/04/2014 09:58 AM, Rafael Espíndola wrote: >>> .align >> >> So yes, EmitValueToAlignment. >> >> Cheers, >> Rafael >> > One more::: > > > OutStreamer.EmitRawText("\t.size __call_stub_fp_" + Twine(Symbol) + > ", .-__call_stub_fp_" + Twine(Symbol)); > > You have to make an expression???? > > i.e. > > .size __call_stub_fp___floatdidf, .-__call_stub_fp___floatdidf > > > TIA. > > ReedIt seems like usually llvm is creating a temporary symbol to get ".". tmp2$: .size __call_stub_fp___floatdidf, (tmp2$)-__call_stub_fp___floatdidf
Rafael Espíndola
2014-Feb-04 21:47 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
On 4 February 2014 16:05, Reed Kotler <rkotler at mips.com> wrote:> On 02/04/2014 09:58 AM, Rafael Espíndola wrote: >>> >>> .align >> >> >> So yes, EmitValueToAlignment. >> >> Cheers, >> Rafael >> > One more::: > > > > OutStreamer.EmitRawText("\t.size __call_stub_fp_" + Twine(Symbol) + > ", .-__call_stub_fp_" + Twine(Symbol)); > > You have to make an expression???? > > i.e. > > .size __call_stub_fp___floatdidf, .-__call_stub_fp___floatdidfEmitELFSize takes a MCExpr, so yes. Cheers, Rafael
reed kotler
2014-Feb-04 22:25 UTC
[LLVMdev] emitting function stub for mips16 floating point patch
On 02/04/2014 01:47 PM, Rafael Espíndola wrote:> On 4 February 2014 16:05, Reed Kotler <rkotler at mips.com> wrote: >> On 02/04/2014 09:58 AM, Rafael Espíndola wrote: >>>> .align >>> >>> So yes, EmitValueToAlignment. >>> >>> Cheers, >>> Rafael >>> >> One more::: >> >> >> >> OutStreamer.EmitRawText("\t.size __call_stub_fp_" + Twine(Symbol) + >> ", .-__call_stub_fp_" + Twine(Symbol)); >> >> You have to make an expression???? >> >> i.e. >> >> .size __call_stub_fp___floatdidf, .-__call_stub_fp___floatdidf > EmitELFSize takes a MCExpr, so yes. > > Cheers, > RafaelI'm able get this almost. .size __call_stub_fp___floatdidf, ($tmp6)+(-__call_stub_fp___floatdidf) is there a way to get a binary minus?