]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/test/inl_test.go
runtime: add execution tracer v2 behind GOEXPERIMENT=exectracer2
[gostls13.git] / src / cmd / compile / internal / test / inl_test.go
index ea7f317ef52aac34cfe4dcc79061f797fdd6545d..6d10f6c54c572dafc2b15c45f873ace192e1e10c 100644 (file)
@@ -93,6 +93,10 @@ func TestIntendedInlining(t *testing.T) {
                        "(*puintptr).set",
                        "(*wbBuf).get1",
                        "(*wbBuf).get2",
+
+                       // Trace-related ones.
+                       "traceLocker.ok",
+                       "traceEnabled",
                },
                "runtime/internal/sys": {},
                "runtime/internal/math": {
@@ -249,6 +253,10 @@ func TestIntendedInlining(t *testing.T) {
                want["runtime/internal/sys"] = append(want["runtime/internal/sys"], "TrailingZeros32")
                want["runtime/internal/sys"] = append(want["runtime/internal/sys"], "Bswap32")
        }
+       if runtime.GOARCH == "amd64" || runtime.GOARCH == "arm64" || runtime.GOARCH == "loong64" || runtime.GOARCH == "mips" || runtime.GOARCH == "mips64" || runtime.GOARCH == "ppc64" || runtime.GOARCH == "riscv64" || runtime.GOARCH == "s390x" {
+               // runtime/internal/atomic.Loaduintptr is only intrinsified on these platforms.
+               want["runtime"] = append(want["runtime"], "traceAcquire")
+       }
        if bits.UintSize == 64 {
                // mix is only defined on 64-bit architectures
                want["runtime"] = append(want["runtime"], "mix")