Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    // assembler.
    
    package arch
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/obj/riscv"
    )
    
    // IsRISCV64AMO reports whether op is an AMO instruction 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,
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 14 15:13:11 UTC 2025
    - 1.8K 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
    				}
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Aug 05 17:31:25 UTC 2025
    - 26.2K bytes
    - Viewed (0)
Back to top