On Mon, Jul 10, 2017 at 3:01 PM, 'Francesc Campoy Flores' via
golang-nuts <golang-nuts@googlegroups.com> wrote:
>
> I'm writing on compiler optimization and benchmarks, and one of the things I
> do is `go test -bench=. -gcflags "-S"`
>
> This outputs the generated assembly, which allows me to point out when a
> function call has ben inlined, or simply removed.
>
> The problem is that for this piece of code
> https://play.golang.org/p/dGdRN_wd1i, I get two definitions for BenchmarkDiv
> (see attached file), one that has a DIVSD instruction, the other that
> doesnt.
>
> What does this mean?

I can't recreate this, and your out.s file looks garbled.  Are you
sure that you didn't have two builds running at the same time writing
to the same file?  Can you recreate the problem?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to