• Martin Möhrmann's avatar
    internal/cpu: add invalid option warnings and support to enable cpu features · 3e0227f6
    Martin Möhrmann authored
    This CL adds the ability to enable the cpu feature FEATURE by specifying
    FEATURE=on in GODEBUGCPU. Syntax support to enable cpu features is useful
    in combination with a preceeding all=off to disable all but some specific
    cpu features. Example:
    
    GODEBUGCPU=all=off,sse3=on
    
    This CL implements printing of warnings for invalid GODEBUGCPU settings:
    - requests enabling features that are not supported with the current CPU
    - specifying values different than 'on' or 'off' for a feature
    - settings for unkown cpu feature names
    
    Updates #27218
    
    Change-Id: Ic13e5c4c35426a390c50eaa4bd2a408ef2ee21be
    Reviewed-on: https://go-review.googlesource.com/c/141800
    Run-TryBot: Martin Möhrmann <moehrmann@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    3e0227f6
Name
Last commit
Last update
..
cpu.go Loading commit data...
cpu_386.go Loading commit data...
cpu_amd64.go Loading commit data...
cpu_amd64p32.go Loading commit data...
cpu_arm.go Loading commit data...
cpu_arm64.go Loading commit data...
cpu_arm64_test.go Loading commit data...
cpu_mips.go Loading commit data...
cpu_mips64.go Loading commit data...
cpu_mips64le.go Loading commit data...
cpu_mipsle.go Loading commit data...
cpu_no_init.go Loading commit data...
cpu_ppc64x.go Loading commit data...
cpu_ppc64x_test.go Loading commit data...
cpu_s390x.go Loading commit data...
cpu_s390x.s Loading commit data...
cpu_s390x_test.go Loading commit data...
cpu_test.go Loading commit data...
cpu_wasm.go Loading commit data...
cpu_x86.go Loading commit data...
cpu_x86.s Loading commit data...
cpu_x86_test.go Loading commit data...
export_test.go Loading commit data...