Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for TYPE_BRANCH (0.4 sec)

  1. src/cmd/internal/obj/arm/obj5.go

    	p.From.Class = 0
    	p.To.Class = 0
    
    	c := ctxt5{ctxt: ctxt, newprog: newprog}
    
    	// Rewrite B/BL to symbol as TYPE_BRANCH.
    	switch p.As {
    	case AB, ABL, obj.ADUFFZERO, obj.ADUFFCOPY:
    		if p.To.Type == obj.TYPE_MEM && (p.To.Name == obj.NAME_EXTERN || p.To.Name == obj.NAME_STATIC) && p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Replace TLS register fetches on older ARM processors.
    	switch p.As {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/loong64/obj.go

    	"internal/abi"
    	"log"
    	"math"
    )
    
    func progedit(ctxt *obj.Link, p *obj.Prog, newprog obj.ProgAlloc) {
    	// Rewrite JMP/JAL to symbol as TYPE_BRANCH.
    	switch p.As {
    	case AJMP,
    		AJAL,
    		ARET,
    		obj.ADUFFZERO,
    		obj.ADUFFCOPY:
    		if p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Rewrite float constants to values stored in memory.
    	switch p.As {
    	case AMOVF:
    		if p.From.Type == obj.TYPE_FCONST {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:22:18 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/arm64/obj7.go

    		p = obj.Appendp(p, c.newprog)
    		q = p
    		p.As = ABLO
    		p.To.Type = obj.TYPE_BRANCH
    
    		p = obj.Appendp(p, c.newprog)
    		p.As = ACMP
    		p.From.Type = obj.TYPE_REG
    		p.From.Reg = REGRT1
    		p.Reg = REGRT2
    	}
    
    	// BLS	do-morestack
    	bls := obj.Appendp(p, c.newprog)
    	bls.As = ABLS
    	bls.To.Type = obj.TYPE_BRANCH
    
    	end := c.ctxt.EndUnsafePoint(bls, c.newprog, -1)
    
    	var last *obj.Prog
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/ppc64/obj9.go

    	p.From.Class = 0
    	p.To.Class = 0
    
    	c := ctxt9{ctxt: ctxt, newprog: newprog}
    
    	// Rewrite BR/BL to symbol as TYPE_BRANCH.
    	switch p.As {
    	case ABR,
    		ABL,
    		obj.ARET,
    		obj.ADUFFZERO,
    		obj.ADUFFCOPY:
    		if p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Rewrite float constants to values stored in memory.
    	switch p.As {
    	case AFMOVS:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/x86/obj6.go

    			p.To.Type = obj.TYPE_CONST
    		}
    	}
    
    	// Rewrite CALL/JMP/RET to symbol as TYPE_BRANCH.
    	switch p.As {
    	case obj.ACALL, obj.AJMP, obj.ARET:
    		if p.To.Type == obj.TYPE_MEM && (p.To.Name == obj.NAME_EXTERN || p.To.Name == obj.NAME_STATIC) && p.To.Sym != nil {
    			p.To.Type = obj.TYPE_BRANCH
    		}
    	}
    
    	// Rewrite MOVL/MOVQ $XXX(FP/SP) as LEAL/LEAQ.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:36:45 UTC 2023
    - 40.9K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/link.go

    type AddrType uint8
    
    const (
    	TYPE_NONE AddrType = iota
    	TYPE_BRANCH
    	TYPE_TEXTSIZE
    	TYPE_MEM
    	TYPE_CONST
    	TYPE_FCONST
    	TYPE_SCONST
    	TYPE_REG
    	TYPE_ADDR
    	TYPE_SHIFT
    	TYPE_REGREG
    	TYPE_REGREG2
    	TYPE_INDIR
    	TYPE_REGLIST
    	TYPE_SPECIAL
    )
    
    func (a *Addr) Target() *Prog {
    	if a.Type == TYPE_BRANCH && a.Val != nil {
    		return a.Val.(*Prog)
    	}
    	return nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/asm.go

    		return
    	default:
    		p.errorf("wrong number of arguments to %s instruction", op)
    		return
    	}
    	switch {
    	case target.Type == obj.TYPE_BRANCH:
    		// JMP 4(PC)
    		*targetAddr = obj.Addr{
    			Type:   obj.TYPE_BRANCH,
    			Offset: p.pc + 1 + target.Offset, // +1 because p.pc is incremented in append, below.
    		}
    	case target.Type == obj.TYPE_REG:
    		// JMP R1
    		*targetAddr = *target
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/ppc64/asm_test.go

    		{obj.Addr{Type: obj.TYPE_CONST, Name: obj.NAME_NONE, Offset: -(1 << 34)}, C_64CON},
    
    		// Branch like arguments
    		{obj.Addr{Type: obj.TYPE_BRANCH, Sym: &obj.LSym{Type: objabi.SDATA}}, cmplx{C_BRA, C_BRAPIC, C_BRAPIC, C_BRA}},
    		{obj.Addr{Type: obj.TYPE_BRANCH}, C_BRA},
    	}
    
    	pic_ctxt9 := ctxt9{ctxt: &obj.Link{Flag_shared: true, Arch: &Linkppc64}, autosize: 0}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 22:14:57 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/arm64/a.out.go

    	C_LACON  // 32-bit offset in auto constant $a(FP)
    	C_AECON  // ADDCON offset in extern constant $e(SB)
    
    	// TODO(aram): only one branch class should be enough
    	C_SBRA // for TYPE_BRANCH
    	C_LBRA
    
    	C_ZAUTO       // 0(RSP)
    	C_NSAUTO_16   // -256 <= x < 0, 0 mod 16
    	C_NSAUTO_8    // -256 <= x < 0, 0 mod 8
    	C_NSAUTO_4    // -256 <= x < 0, 0 mod 4
    	C_NSAUTO      // -256 <= x < 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 17:56:30 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/util.go

    			io.WriteString(w, Rconv(int(a.Reg)))
    		}
    		if (RBaseARM64+1<<10+1<<9) /* arm64.REG_ELEM */ <= a.Reg &&
    			a.Reg < (RBaseARM64+1<<11) /* arm64.REG_ELEM_END */ {
    			fmt.Fprintf(w, "[%d]", a.Index)
    		}
    
    	case TYPE_BRANCH:
    		if a.Sym != nil {
    			fmt.Fprintf(w, "%s%s(SB)", a.Sym.Name, abiDecorate(a, abiDetail))
    		} else if a.Target() != nil {
    			fmt.Fprint(w, a.Target().Pc)
    		} else {
    			fmt.Fprintf(w, "%d(PC)", a.Offset)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top