]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add ability to hash-debug on file:line, including inlining
authorDavid Chase <drchase@google.com>
Mon, 7 Nov 2022 16:02:08 +0000 (11:02 -0500)
committerDavid Chase <drchase@google.com>
Thu, 10 Nov 2022 17:02:09 +0000 (17:02 +0000)
commitd33043d37dc8cc5d691ff590ebcd2fd42e356a66
tree3403828570725b1925a17a1431d2774f73ad2611
parent271f139f17c8ec5895bde52dac4056f99768e258
cmd/compile: add ability to hash-debug on file:line, including inlining

Modified the fmahash gc debug flag to use this, and modified the
test to check for a hash match that includes inlining.  Also
made the test non-short to ensure portability.

Note fma.go has been enhanced into an FMA test that requires
two separate FMAs in order to "fail"; if either one is 2-rounding,
then it "passes".  (It neither passes nor fails here; its role
is to demonstrate that the FMAs are correctly reported; the
enhanced failure mode was discovered while testing the search
tool.)

Change-Id: I4e328e3654f442d498eac982135420abb59c5434
Reviewed-on: https://go-review.googlesource.com/c/go/+/448358
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: David Chase <drchase@google.com>
src/cmd/compile/internal/base/hashdebug.go
src/cmd/compile/internal/ssa/fmahash_test.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/testdata/fma.go