Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsRISCV64AMO (0.17 sec)

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

    // assembler.
    
    package arch
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/obj/riscv"
    )
    
    // IsRISCV64AMO reports whether the op (as defined by a riscv.A*
    // constant) is one of the AMO instructions that requires special
    // handling.
    func IsRISCV64AMO(op obj.As) bool {
    	switch op {
    	case riscv.ASCW, riscv.ASCD, riscv.AAMOSWAPW, riscv.AAMOSWAPD, riscv.AAMOADDW, riscv.AAMOADDD,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 15 08:13:28 GMT 2020
    - 943 bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/asm.go

    			case obj.TYPE_REG:
    				prog.Reg = p.getRegister(prog, op, &a[1])
    			default:
    				prog.AddRestSource(a[1])
    			}
    		case sys.RISCV64:
    			// RISCV64 instructions with one input and two outputs.
    			if arch.IsRISCV64AMO(op) {
    				prog.From = a[0]
    				prog.To = a[1]
    				if a[2].Type != obj.TYPE_REG {
    					p.errorf("invalid addressing modes for third operand to %s instruction, must be register", op)
    					return
    				}
    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)
Back to top