• David Chase's avatar
    cmd/compile: adapt GOSSAHASH to set a DebugTest flag in ssa.Config · 897c0ebf
    David Chase authored
    Binary search remains our friend.
    Suppose you add an ought-to-be-benign pattern to PPC64.rules,
    and make.bash starts crashing.  You can guard the pattern(s)
    with config.DebugTest:
    
    (Eq8 x y) && config.DebugTest && isSigned(x.Type) &&
       isSigned(y.Type) ->
       (Equal (CMPW (SignExt8to32 x) (SignExt8to32 y)))
    
    and then
    
      gossahash -s ./make.bash
      ...
      (go drink beer while silicon minions toil)
      ...
      Trying ./make.bash args=[], env=[GOSSAHASH=100110010111110]
      ./make.bash failed (1 distinct triggers): exit status 1
      Trigger string is 'GOSSAHASH triggered (*importReader).readByte',
        repeated 1 times
      Review GSHS_LAST_FAIL.0.log for failing run
      Finished with GOSSAHASH=100110010111110
    
    Change-Id: I4eff46ebaf496baa2acedd32e217005cb3ac1c62
    Reviewed-on: https://go-review.googlesource.com/29273
    Run-TryBot: David Chase <drchase@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    897c0ebf
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...