Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TYPE_BRANCH (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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