Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 184 for clobber (0.18 sec)

  1. src/cmd/cgo/internal/test/issue9400/asm_arm.s

    	MOVW	$0xffff0fc0, R15 // R15 is PC
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Save link register
    	MOVW	R14, R4
    
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADD	$(1024 * 8), R13
    
    	// Ask signaller to setgid
    	MOVW	$·Baton(SB), R2
    storeloop:
    	MOVW	0(R2), R0
    	MOVW	$1, R1
    	BL	cas<>(SB)
    	BCC	storeloop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 758 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue9400/asm_riscv64.s

    // license that can be found in the LICENSE file.
    
    //go:build riscv64 && gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADD	$(1024*8), X2
    
    	// Ask signaller to setgid
    	MOV	$1, X5
    	FENCE
    	MOVW	X5, ·Baton(SB)
    	FENCE
    
    	// Wait for setgid completion
    loop:
    	FENCE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 659 bytes
    - Viewed (0)
  3. test/fixedbugs/issue26426.go

    // license that can be found in the LICENSE file.
    
    package main
    
    //go:noinline
    func f(p *int, v int, q1, q2 *int, r *bool) {
    	x := *r
    	if x {
    		*q1 = 1
    	}
    	*p = *p + v // This must clobber flags. Otherwise we keep x in a flags register.
    	if x {
    		*q2 = 1
    	}
    }
    
    func main() {
    	var p int
    	var q1, q2 int
    	var b bool
    	f(&p, 1, &q1, &q2, &b)
    	if q1 != 0 || q2 != 0 {
    		panic("bad")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 19 16:24:53 UTC 2018
    - 499 bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue9400/asm_mipsx.s

    //go:build (mips || mipsle) && gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADDU	$(1024*8), R29
    
    	// Ask signaller to setgid
    	MOVW	$1, R1
    	SYNC
    	MOVW	R1, ·Baton(SB)
    	SYNC
    
    	// Wait for setgid completion
    loop:
    	SYNC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 663 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue9400/asm_ppc64x.s

    //go:build (ppc64 || ppc64le) && gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADD	$(1024 * 8), R1
    
    	// Ask signaller to setgid
    	MOVW	$1, R3
    	SYNC
    	MOVW	R3, ·Baton(SB)
    
    	// Wait for setgid completion
    loop:
    	SYNC
    	MOVW	·Baton(SB), R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 668 bytes
    - Viewed (0)
  6. test/fixedbugs/issue5820.go

    // run
    
    // Copyright 2013 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.
    
    // issue 5820: register clobber when clearfat and 64 bit arithmetic is interleaved.
    
    package main
    
    func main() {
    	array := make([][]int, 2)
    	index := uint64(1)
    	array[index] = nil
    	if array[1] != nil {
    		panic("array[1] != nil")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 402 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue9400/asm_386.s

    //go:build gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT,$0-0
    	MOVL	$·Baton(SB), BX
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADDL	$(1024 * 8), SP
    
    	// Ask signaller to setgid
    	MOVL	$1, (BX)
    
    	// Wait for setgid completion
    loop:
    	PAUSE
    	MOVL	(BX), AX
    	CMPL	AX, $0
    	JNE	loop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 575 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/issue9400/asm_s390x.s

    // license that can be found in the LICENSE file.
    
    //go:build gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT,$0-0
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADD	$(1024 * 8), R15
    
    	// Ask signaller to setgid
    	MOVD	$·Baton(SB), R5
    	MOVW	$1, 0(R5)
    
    	// Wait for setgid completion
    loop:
    	SYNC
    	MOVW	·Baton(SB), R3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 580 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue9400/asm_loong64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADDV	$(1024*8), R3
    
    	// Ask signaller to setgid
    	MOVW	$1, R12
    	DBAR
    	MOVW	R12, ·Baton(SB)
    	DBAR
    
    	// Wait for setgid completion
    loop:
    	DBAR
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 633 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue9400/asm_arm64.s

    //go:build gc
    
    #include "textflag.h"
    
    TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
    	// Save link register
    	MOVD	R30, R9
    
    	// Rewind stack pointer so anything that happens on the stack
    	// will clobber the test pattern created by the caller
    	ADD	$(1024 * 8), RSP
    
    	// Ask signaller to setgid
    	MOVD	$·Baton(SB), R0
    	MOVD	$1, R1
    storeloop:
    	LDAXRW	(R0), R2
    	STLXRW	R1, (R0), R3
    	CBNZ	R3, storeloop
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 760 bytes
    - Viewed (0)
Back to top