Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Assembly (0.15 sec)

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

    	failed := false
    	ctxt.DiagFunc = func(format string, args ...interface{}) {
    		failed = true
    		t.Errorf(format, args...)
    	}
    	pList.Firstpc, ok = parser.Parse()
    	if !ok || failed {
    		t.Errorf("asm: %s assembly failed", goarch)
    		return
    	}
    	output := strings.Split(testOut.String(), "\n")
    
    	// Reconstruct expected output by independently "parsing" the input.
    	data, err := os.ReadFile(input)
    	if err != nil {
    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)
  2. src/cmd/asm/internal/asm/parse.go

    			continue
    		}
    		p.errorf("unrecognized instruction %q", word)
    	}
    	if p.errorCount > 0 {
    		return nil, false
    	}
    	p.patch()
    	return p.firstProg, true
    }
    
    // ParseSymABIs parses p's assembly code to find text symbol
    // definitions and references and writes a symabis file to w.
    func (p *Parser) ParseSymABIs(w io.Writer) bool {
    	operands := make([][]lex.Token, 0, 3)
    	for {
    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. cmd/object-api-utils.go

    	}
    	return fn
    }
    
    // compressOpts are the options for writing compressed data.
    var compressOpts []s2.WriterOption
    
    func init() {
    	if runtime.GOARCH == "amd64" {
    		// On amd64 we have assembly and can use stronger compression.
    		compressOpts = append(compressOpts, s2.WriterBetterCompression())
    	}
    }
    
    // newS2CompressReader will read data from r, compress it and return the compressed data as a Reader.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  4. src/cmd/asm/internal/asm/asm.go

    			targetAddr.Type = obj.TYPE_REG
    		}
    	case target.Type == obj.TYPE_CONST:
    		// JMP $4
    		*targetAddr = a[0]
    	case target.Type == obj.TYPE_NONE:
    		// JMP
    	default:
    		p.errorf("cannot assemble jump %+v", target)
    		return
    	}
    
    	p.append(prog, cond, true)
    }
    
    func (p *Parser) patch() {
    	for _, patch := range p.toPatch {
    		targetProg := p.labels[patch.label]
    		if targetProg == nil {
    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)
  5. cmd/encryption-v1.go

    		err = errors.New("Object is not encrypted")
    		return
    	}
    
    	if rs == nil {
    		// No range, so offsets refer to the whole object.
    		return 0, o.Size, 0, 0, 0, nil
    	}
    
    	// Assemble slice of (decrypted) part sizes in `sizes`
    	var sizes []int64
    	var decObjSize int64 // decrypted total object size
    	if o.isMultipart() {
    		sizes = make([]int64, len(o.Parts))
    		for i, part := range o.Parts {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/operand_test.go

    				}
    			}
    		})
    	}
    }
    
    type operandTest struct {
    	input, output string
    }
    
    type badOperandTest struct {
    	input, error string
    }
    
    // Examples collected by scanning all the assembly in the standard repo.
    
    var amd64OperandTests = []operandTest{
    	{"$(-1.0)", "$(-1.0)"},
    	{"$(0.0)", "$(0.0)"},
    	{"$(0x2000000+116)", "$33554548"},
    	{"$(0x3F<<7)", "$8064"},
    	{"$(112+8)", "$120"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  7. internal/s3select/sql/funceval.go

    	}
    	inferTypeAsString(v1)
    	s, ok := v1.ToString()
    	if !ok {
    		err := fmt.Errorf("Incorrect argument type passed to %s", sqlFnSubstring)
    		return nil, errIncorrectSQLFunctionArgumentType(err)
    	}
    
    	// Assemble other arguments
    	arg2, arg3 := e.From, e.For
    	// Check if the second form of substring is being used
    	if e.From == nil {
    		arg2, arg3 = e.Arg2, e.Arg3
    	}
    
    	// Evaluate the FROM argument
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
Back to top