Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Label (0.13 sec)

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

    	if p.firstProg == nil {
    		p.firstProg = prog
    	} else {
    		p.lastProg.Link = prog
    	}
    	p.lastProg = prog
    	if doLabel {
    		p.pc++
    		for _, label := range p.pendingLabels {
    			if p.labels[label] != nil {
    				p.errorf("label %q multiply defined", label)
    				return
    			}
    			p.labels[label] = prog
    		}
    		p.pendingLabels = p.pendingLabels[0:0]
    	}
    	prog.Pc = p.pc
    	if *flags.Debug {
    		fmt.Println(p.lineNum, prog)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	allowABI      bool             // Whether ABI selectors are allowed.
    	pkgPrefix     string           // Prefix to add to local symbols.
    	errorWriter   io.Writer
    }
    
    type Patch struct {
    	addr  *obj.Addr
    	label string
    }
    
    func NewParser(ctxt *obj.Link, ar *arch.Arch, lexer lex.TokenReader) *Parser {
    	pkgPrefix := obj.UnlinkablePkg
    	if ctxt != nil {
    		pkgPrefix = objabi.PathToPrefix(ctxt.Pkgpath)
    	}
    	return &Parser{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/endtoend_test.go

    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    		if printed == "" || strings.HasSuffix(printed, ":") { // empty or label
    			continue
    		}
    		seq++
    
    		var hexes string
    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    			// no comment
    		case 2:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/archive/tar/tar_test.go

    			t.Errorf("test %d, got nil-error, want non-nil error", i)
    		}
    	}
    }
    
    func Benchmark(b *testing.B) {
    	type file struct {
    		hdr  *Header
    		body []byte
    	}
    
    	vectors := []struct {
    		label string
    		files []file
    	}{{
    		"USTAR",
    		[]file{{
    			&Header{Name: "bar", Mode: 0640, Size: int64(3)},
    			[]byte("foo"),
    		}, {
    			&Header{Name: "world", Mode: 0640, Size: int64(5)},
    			[]byte("hello"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/arch/arm64.go

    	"BLE":   true,
    	"CALL":  true,
    	"CBZ":   true,
    	"CBZW":  true,
    	"CBNZ":  true,
    	"CBNZW": true,
    	"JMP":   true,
    	"TBNZ":  true,
    	"TBZ":   true,
    
    	// ADR isn't really a jump, but it takes a PC or label reference,
    	// which needs to patched like a jump.
    	"ADR":  true,
    	"ADRP": true,
    }
    
    func jumpArm64(word string) bool {
    	return arm64Jump[word]
    }
    
    var arm64SpecialOperand map[string]arm64.SpecialOperand
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
Back to top