Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TYPE_BRANCH (0.18 sec)

  1. src/cmd/internal/obj/addrtype_string.go

    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[TYPE_NONE-0]
    	_ = x[TYPE_BRANCH-1]
    	_ = x[TYPE_TEXTSIZE-2]
    	_ = x[TYPE_MEM-3]
    	_ = x[TYPE_CONST-4]
    	_ = x[TYPE_FCONST-5]
    	_ = x[TYPE_SCONST-6]
    	_ = x[TYPE_REG-7]
    	_ = x[TYPE_ADDR-8]
    	_ = x[TYPE_SHIFT-9]
    	_ = x[TYPE_REGREG-10]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 03:16:26 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/pass.go

    // checkaddr checks that a has an expected encoding, especially TYPE_CONST vs TYPE_ADDR.
    func checkaddr(ctxt *Link, p *Prog, a *Addr) {
    	switch a.Type {
    	case TYPE_NONE, TYPE_REGREG2, TYPE_REGLIST:
    		return
    
    	case TYPE_BRANCH, TYPE_TEXTSIZE:
    		if a.Reg != 0 || a.Index != 0 || a.Scale != 0 || a.Name != 0 {
    			break
    		}
    		return
    
    	case TYPE_MEM:
    		return
    
    	case TYPE_CONST:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/riscv64/ggen.go

    	loop := p
    	p = pp.Append(p, riscv.AADD, obj.TYPE_CONST, 0, int64(types.PtrSize), obj.TYPE_REG, riscv.REG_T0, 0)
    	p = pp.Append(p, riscv.ABNE, obj.TYPE_REG, riscv.REG_T0, 0, obj.TYPE_BRANCH, 0, 0)
    	p.Reg = riscv.REG_T1
    	p.To.SetTarget(loop)
    	return p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/s390x/ggen.go

    		p = pp.Append(p, s390x.ACLEAR, obj.TYPE_CONST, 0, 256, obj.TYPE_MEM, reg, off)
    		pl := p
    		p = pp.Append(p, s390x.AADD, obj.TYPE_CONST, 0, 256, obj.TYPE_REG, reg, 0)
    		p = pp.Append(p, s390x.ABRCTG, obj.TYPE_REG, ireg, 0, obj.TYPE_BRANCH, 0, 0)
    		p.To.SetTarget(pl)
    		cnt = cnt % 256
    	}
    
    	// Generate remaining clear instructions without a loop.
    	for cnt > 0 {
    		n := cnt
    
    		// Can clear at most 256 bytes per instruction.
    		if n > 256 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/x86/asm_test.go

    	// behavior seems inconsistent. It should probably either
    	// never check for arch or do it in all cases.
    
    	oclassTestsCommon := []*oclassTest{
    		{&obj.Addr{Type: obj.TYPE_NONE}, Ynone},
    		{&obj.Addr{Type: obj.TYPE_BRANCH}, Ybr},
    		{&obj.Addr{Type: obj.TYPE_TEXTSIZE}, Ytextsize},
    
    		{&obj.Addr{Type: obj.TYPE_INDIR, Name: obj.NAME_EXTERN}, Yindir},
    		{&obj.Addr{Type: obj.TYPE_INDIR, Name: obj.NAME_GOTREF}, Yindir},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 19:39:51 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top