Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PC (0.28 sec)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    		}
    
    		f := strings.Fields(string(buf))
    
    		// Turn relative (PC) into absolute (PC) automatically,
    		// so that most branch instructions don't need comments
    		// giving the absolute form.
    		if len(f) > 0 && strings.Contains(printed, "(PC)") {
    			index := len(f) - 1
    			suf := "(PC)"
    			for !strings.HasSuffix(f[index], suf) {
    				index--
    				suf = "(PC),"
    			}
    			str := f[index]
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 23 18:45:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/arch/arch.go

    	// Create maps for easy lookup of instruction names etc.
    	for i, s := range x86.Register {
    		register[s] = int16(i + x86.REG_AL)
    	}
    	// Pseudo-registers.
    	register["SB"] = RSB
    	register["FP"] = RFP
    	register["PC"] = RPC
    	if linkArch == &x86.Linkamd64 {
    		// Alias g to R14
    		register["g"] = x86.REGG
    	}
    	// Register prefix not used on this architecture.
    
    	instructions := make(map[string]obj.As)
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Nov 13 12:17:37 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/riscv64.s

    	// Branch pseudo-instructions
    	BEQZ	X5, 2(PC)				// 63840200
    	BGEZ	X5, 2(PC)				// 63d40200
    	BGT	X5, X6, 2(PC)				// 63445300
    	BGTU	X5, X6, 2(PC)				// 63645300
    	BGTZ	X5, 2(PC)				// 63445000
    	BLE	X5, X6, 2(PC)				// 63545300
    	BLEU	X5, X6, 2(PC)				// 63745300
    	BLEZ	X5, 2(PC)				// 63545000
    	BLTZ	X5, 2(PC)				// 63c40200
    	BNEZ	X5, 2(PC)				// 63940200
    
    	// Set pseudo-instructions
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Nov 13 12:17:37 UTC 2025
    - 73.7K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/parse.go

    	errorLine     int   // Line number of last error.
    	errorCount    int   // Number of errors.
    	sawCode       bool  // saw code in this file (as opposed to comments and blank lines)
    	pc            int64 // virtual PC; count of Progs; doesn't advance for GLOBL or DATA.
    	input         []lex.Token
    	inputPos      int
    	pendingLabels []string // Labels to attach to next instruction.
    	labels        map[string]*obj.Prog
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Nov 12 03:59:40 UTC 2025
    - 37.3K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/loong64enc1.s

    	ROTRV	$4, R4			// 84104d00
    	SYSCALL				// 00002b00
    	BEQ	R4, R5, 1(PC)		// 85040058
    	BEQ	R4, 1(PC)		// 80040040
    	BEQ	R4, R0, 1(PC)		// 80040040
    	BEQ	R0, R4, 1(PC)		// 80040040
    	BNE	R4, R5, 1(PC)		// 8504005c
    	BNE	R4, 1(PC)		// 80040044
    	BNE	R4, R0, 1(PC)		// 80040044
    	BNE	R0, R4, 1(PC)		// 80040044
    	BLTU	R4, 1(PC)		// 80040068
    	MOVF	y+8(FP), F4		// 6440002b
    	MOVD	y+8(FP), F4		// 6440802b
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Nov 27 00:46:52 UTC 2025
    - 44.5K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/arm64.s

    	BL	1(PC)      // CALL 1(PC)
    	BL	(R2)       // CALL (R2)
    	BL	foo(SB)    // CALL foo(SB)
    	BL	bar<>(SB)  // CALL bar<>(SB)
    	B	foo(SB)    // JMP foo(SB)
    	BEQ	1(PC)
    	BEQ	2(PC)
    	TBZ	$1, R1, 2(PC)
    	TBNZ	$2, R2, 2(PC)
    	JMP	foo(SB)
    	CALL	foo(SB)
    
    // ADR
    	ADR	next, R11     // ADR R11 // 2b000010
    next:
    	NOP
    	ADR -2(PC), R10    // 0a000010
    	ADR 2(PC), R16     // 10000010
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Mon Nov 10 17:34:13 UTC 2025
    - 96.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/flags/flags.go

    	MayMoreStack         string `help:"call named function before all stack growth checks"`
    	PCTab                string `help:"print named pc-value table\nOne of: pctospadj, pctofile, pctoline, pctoinline, pctopcdata"`
    }
    
    var (
    	D        MultiFlag
    	I        MultiFlag
    	PrintOut int
    	DebugV   bool
    )
    
    func init() {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Nov 18 08:58:00 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  8. doc/asm.html

    while the second refers to the
    hardware's <code>SP</code> register.
    </p>
    
    <p>
    On machines where <code>SP</code> and <code>PC</code> are
    traditionally aliases for a physical, numbered register,
    in the Go assembler the names <code>SP</code> and <code>PC</code>
    are still treated specially;
    for instance, references to <code>SP</code> require a symbol,
    much like <code>FP</code>.
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:09:46 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/input.go

    	}
    	return args, tokens
    }
    
    // invokeMacro pushes onto the input Stack a Slice that holds the macro definition with the actual
    // parameters substituted for the formals.
    // Invoking a macro does not touch the PC/line history.
    func (in *Input) invokeMacro(macro *Macro) {
    	// If the macro has no arguments, just substitute the text.
    	if macro.args == nil {
    		in.Push(NewSlice(in.Base(), in.Line(), macro.tokens))
    		return
    	}
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Wed Nov 12 03:59:40 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/testdata/riscv64validation.s

    	CJR	X10, X11				// ERROR "expected no register in rs2"
    	CJALR	X0					// ERROR "cannot use register X0 in rs1"
    	CJALR	X10, X11				// ERROR "expected no register in rd"
    	CBEQZ	X5, 1(PC)				// ERROR "expected integer prime register in rs1"
    	CBNEZ	X5, 1(PC)				// ERROR "expected integer prime register in rs1"
    	CLI	$3, X0					// ERROR "cannot use register X0 in rd"
    	CLI	$-33, X5				// ERROR "must be in range [-32, 31]"
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Nov 13 12:17:37 UTC 2025
    - 42.1K bytes
    - Viewed (0)
Back to top