Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ROLW (0.03 sec)

  1. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (ROLW x (MOVDconst [val]))
    	// result: (RORIW [int64(int8(-val)&31)] x)
    	for {
    		x := v_0
    		if v_1.Op != OpRISCV64MOVDconst {
    			break
    		}
    		val := auxIntToInt64(v_1.AuxInt)
    		v.reset(OpRISCV64RORIW)
    		v.AuxInt = int64ToAuxInt(int64(int8(-val) & 31))
    		v.AddArg(x)
    		return true
    	}
    	// match: (ROLW x (NEG y))
    	// result: (RORW x y)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
Back to top