- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 46 for asmCheck (0.17 sec)
-
test/codegen/spectre.go
// asmcheck -gcflags=-spectre=index //go:build amd64 // Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen func IndexArray(x *[10]int, i int) int { // amd64:`CMOVQCC` return x[i] } func IndexString(x string, i int) byte { // amd64:`CMOVQ(LS|CC)` return x[i] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 734 bytes - Viewed (0) -
test/codegen/issue56440.go
// asmcheck // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Check to make sure that we recognize when the length of an append // is constant. We check this by making sure that the constant length // is folded into a load offset. package p func f(x []int) int { s := make([]int, 3) s = append(s, 4, 5)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:40:49 UTC 2022 - 689 bytes - Viewed (0) -
test/codegen/issue60324.go
// asmcheck // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen func main() { // amd64:"LEAQ\tcommand-line-arguments\\.main\\.f\\.g\\.h\\.func3" f(1)() // amd64:"LEAQ\tcommand-line-arguments\\.main\\.g\\.h\\.func2" g(2)() // amd64:"LEAQ\tcommand-line-arguments\\.main\\.h\\.func1" h(3)()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 22:47:15 UTC 2023 - 805 bytes - Viewed (0) -
test/codegen/ifaces.go
// asmcheck // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type I interface{ M() } func NopConvertIface(x I) I { // amd64:-`.*runtime.convI2I` return I(x) } func NopConvertGeneric[T any](x T) T { // amd64:-`.*runtime.convI2I` return T(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 17:02:53 UTC 2023 - 621 bytes - Viewed (0) -
test/codegen/retpoline.go
// asmcheck -gcflags=-spectre=ret //go:build amd64 package codegen func CallFunc(f func()) { // amd64:`CALL\truntime.retpoline` f() } func CallInterface(x interface{ M() }) { // amd64:`CALL\truntime.retpoline` x.M() } // Check to make sure that jump tables are disabled // when retpoline is on. See issue 57097. func noJumpTables(x int) int { switch x { case 0: return 0 case 1: return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 580 bytes - Viewed (0) -
test/codegen/issue54467.go
// asmcheck // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen func f1(x *[4]int, y *[4]int) { // amd64:".*memmove" *x = *y } func f2(x *[4]int, y [4]int) { // amd64:-".*memmove" *x = y } func f3(x *[4]int, y *[4]int) { // amd64:-".*memmove" t := *y // amd64:-".*memmove" *x = t }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 20:09:33 UTC 2022 - 949 bytes - Viewed (0) -
test/codegen/clobberdead.go
// asmcheck -gcflags=-clobberdead //go:build amd64 || arm64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type T [2]*int // contain pointer, not SSA-able (so locals are not registerized) var p1, p2, p3 T func F() { // 3735936685 is 0xdeaddead. On ARM64 R27 is REGTMP.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0) -
test/codegen/issue52635.go
// asmcheck // Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that optimized range memclr works with pointers to arrays. // The clears get inlined, see https://github.com/golang/go/issues/56997 package codegen type T struct { a *[10]int b [10]int } func (t *T) f() { // amd64:-".*runtime.memclrNoHeapPointers"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 18:11:24 UTC 2023 - 816 bytes - Viewed (0) -
test/codegen/logic.go
// asmcheck // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen // Test to make sure that (CMPQ (ANDQ x y) [0]) does not get rewritten to // (TESTQ x y) if the ANDQ has other uses. If that rewrite happens, then one // of the args of the ANDQ needs to be saved so it can be used as the arg to TESTQ. func andWithUse(x, y int) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 16:32:25 UTC 2023 - 1.1K bytes - Viewed (0) -
test/codegen/clobberdeadreg.go
// asmcheck -gcflags=-clobberdeadreg //go:build amd64 // Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package codegen type S struct { a, b, c, d, e, f int } func F(a, b, c int, d S) { // -2401018187971961171 is 0xdeaddeaddeaddead
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.3K bytes - Viewed (0)