By the way, these instructions are not generated by the compiler. They are
part of the assembly in the stdlib (runtime or internal/bytealg, probably).
On Tuesday, May 14, 2019 at 7:37:44 AM UTC-7, Amnon Baron Cohen wrote:
>
> OK.
> Thanks for the explanation and pointers.
>
> On Tuesday, 14 May 2
OK.
Thanks for the explanation and pointers.
On Tuesday, 14 May 2019 15:15:46 UTC+1, Ian Lance Taylor wrote:
>
> On Tue, May 14, 2019 at 7:03 AM Amnon Baron Cohen > wrote:
>
> > > go version
> > go version go1.12.5 linux/amd64
> > > GODEBUG=cpu.avx=off go build hello.go
> > > objdump -d hello
On Tue, May 14, 2019 at 7:03 AM Amnon Baron Cohen wrote:
> > go version
> go version go1.12.5 linux/amd64
> > GODEBUG=cpu.avx=off go build hello.go
> > objdump -d hello | grep '%ymm'
> 4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2
> 4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3
> 40
Thanks!
>
> go version
go version go1.12.5 linux/amd64
> GODEBUG=cpu.avx=off go build hello.go
> objdump -d hello | grep '%ymm'
4021bd: c5 fe 6f 16 vmovdqu (%rsi),%ymm2
4021c1: c5 fe 6f 1f vmovdqu (%rdi),%ymm3
4021c5: c5 fe 6f 66 20vmovdqu 0x20(%rsi),%ymm4
> GODE
On Tue, May 14, 2019 at 2:18 AM Amnon Baron Cohen wrote:
>
> I am trying to avoid running any AVX instructions in order to prevent Intel's
> dynamic frequency scaling
> reducing my CPU base frequency.
You should be able to avoid AVX instructions at runtime by setting the
environment variable GOD
I am trying to avoid running any AVX instructions in order to prevent
Intel's dynamic frequency scaling
reducing my CPU base frequency.
Thanks,
Amnon
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop re