Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CMPWconst (0.45 sec)

  1. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    ((CMPWconst|CMNWconst) [c] y) && c < 0 && c != -1<<31 => ((CMNWconst|CMPWconst) [-c] y)
    
    ((EQ|NE) (CMPconst  [0] x) yes no) => ((Z|NZ)   x yes no)
    ((EQ|NE) (CMPWconst [0] x) yes no) => ((ZW|NZW) x yes no)
    
    ((EQ|NE|LT|LE|GT|GE) (CMPconst  [0] z:(MADD a x y))  yes no) && z.Uses==1 => ((EQ|NE|LTnoov|LEnoov|GTnoov|GEnoov) (CMN  a (MUL  <x.Type> x y)) yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewriteARM64.go

    	// match: (CMPW x (MOVDconst [c]))
    	// result: (CMPWconst [int32(c)] x)
    	for {
    		x := v_0
    		if v_1.Op != OpARM64MOVDconst {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		v.reset(OpARM64CMPWconst)
    		v.AuxInt = int32ToAuxInt(int32(c))
    		v.AddArg(x)
    		return true
    	}
    	// match: (CMPW (MOVDconst [c]) x)
    	// result: (InvertFlags (CMPWconst [int32(c)] x))
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (EQ (InvertFlags cmp) yes no) => (EQ cmp yes no)
    (NE (InvertFlags cmp) yes no) => (NE cmp yes no)
    
    // constant comparisons
    (CMPWconst (MOVDconst [x]) [y]) && int32(x)==int32(y) => (FlagEQ)
    (CMPWconst (MOVDconst [x]) [y]) && int32(x)<int32(y)  => (FlagLT)
    (CMPWconst (MOVDconst [x]) [y]) && int32(x)>int32(y)  => (FlagGT)
    
    (CMPconst (MOVDconst [x]) [y]) && x==y => (FlagEQ)
    (CMPconst (MOVDconst [x]) [y]) && x<y  => (FlagLT)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritePPC64.go

    	v_0 := v.Args[0]
    	// match: (CMPWconst (MOVDconst [x]) [y])
    	// cond: int32(x)==int32(y)
    	// result: (FlagEQ)
    	for {
    		y := auxIntToInt32(v.AuxInt)
    		if v_0.Op != OpPPC64MOVDconst {
    			break
    		}
    		x := auxIntToInt64(v_0.AuxInt)
    		if !(int32(x) == int32(y)) {
    			break
    		}
    		v.reset(OpPPC64FlagEQ)
    		return true
    	}
    	// match: (CMPWconst (MOVDconst [x]) [y])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "CMPconst", argLength: 1, reg: gp1cr, asm: "CMP", aux: "Int64", typ: "Flags"},
    		{name: "CMPUconst", argLength: 1, reg: gp1cr, asm: "CMPU", aux: "Int64", typ: "Flags"},
    		{name: "CMPWconst", argLength: 1, reg: gp1cr, asm: "CMPW", aux: "Int32", typ: "Flags"},
    		{name: "CMPWUconst", argLength: 1, reg: gp1cr, asm: "CMPWU", aux: "Int32", typ: "Flags"},
    
    		// ISEL  arg2 ? arg0 : arg1
    		// ISELZ arg1 ? arg0 : $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		{name: "CMPW", argLength: 2, reg: gp2flags, asm: "CMPW", typ: "Flags"},                    // arg0 compare to arg1, 32 bit
    		{name: "CMPWconst", argLength: 1, reg: gp1flags, asm: "CMPW", aux: "Int32", typ: "Flags"}, // arg0 compare to auxInt, 32 bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/opGen.go

    		auxType: auxInt32,
    		argLen:  1,
    		asm:     x86.ACMPL,
    		reg: regInfo{
    			inputs: []inputInfo{
    				{0, 255}, // AX CX DX BX SP BP SI DI
    			},
    		},
    	},
    	{
    		name:    "CMPWconst",
    		auxType: auxInt16,
    		argLen:  1,
    		asm:     x86.ACMPW,
    		reg: regInfo{
    			inputs: []inputInfo{
    				{0, 255}, // AX CX DX BX SP BP SI DI
    			},
    		},
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top