- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for IsRISCV64AMO (0.47 seconds)
-
src/cmd/asm/internal/arch/riscv64.go
// assembler. package arch import ( "cmd/internal/obj" "cmd/internal/obj/riscv" "fmt" ) // 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,
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Apr 01 04:17:57 GMT 2026 - 3K bytes - Click Count (0) -
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 }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Mar 20 17:02:17 GMT 2026 - 27.5K bytes - Click Count (0)