Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for CMPWconst (0.16 sec)

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

    (CMPLconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPLconst (MOVLload {sym} [vo.Off()] ptr mem) [vo.Val()])
    (CMPWconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    (CMPBconstload {sym} [vo] ptr mem) && vo.Val() != 0 => (CMPBconst (MOVBload {sym} [vo.Off()] ptr mem) [vo.Val8()])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/386splitload.rules

    (CMP(L|W|B)load {sym} [off] ptr x mem) => (CMP(L|W|B) (MOV(L|W|B)load {sym} [off] ptr mem) x)
    
    (CMPLconstload {sym} [vo] ptr mem) => (CMPLconst (MOVLload {sym} [vo.Off()] ptr mem) [vo.Val()])
    (CMPWconstload {sym} [vo] ptr mem) => (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 620 bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/ssa/_gen/ARM64latelower.rules

    (TSTWconst [c] x) && !isARM64bitcon(uint64(c)|uint64(c)<<32)  => (TSTW x (MOVDconst [int64(c)]))
    
    (CMPconst [c] x) && !isARM64addcon(c)  => (CMP x (MOVDconst [c]))
    (CMPWconst [c] x) && !isARM64addcon(int64(c))  => (CMPW x (MOVDconst [int64(c)]))
    (CMNconst [c] x) && !isARM64addcon(c)  => (CMN x (MOVDconst [c]))
    (CMNWconst [c] x) && !isARM64addcon(int64(c))  => (CMNW x (MOVDconst [int64(c)]))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewrite386splitload.go

    }
    func rewriteValue386splitload_Op386CMPWconstload(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (CMPWconstload {sym} [vo] ptr mem)
    	// result: (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		v.reset(Op386CMPWconst)
    		v.AuxInt = int16ToAuxInt(vo.Val16())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (CMPUconst (MOVDconst [x]) [y]) && uint64(x)<uint64(y) => (FlagLT)
    (CMPUconst (MOVDconst [x]) [y]) && uint64(x)>uint64(y) => (FlagGT)
    
    (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)
    (CMPWUconst (MOVDconst [x]) [y]) && uint32(x)==uint32(y) => (FlagEQ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteAMD64splitload.go

    		x.AuxInt = int32ToAuxInt(vo.Off())
    		x.Aux = symToAux(sym)
    		x.AddArg2(ptr, mem)
    		v.AddArg2(x, x)
    		return true
    	}
    	// match: (CMPWconstload {sym} [vo] ptr mem)
    	// cond: vo.Val() != 0
    	// result: (CMPWconst (MOVWload {sym} [vo.Off()] ptr mem) [vo.Val16()])
    	for {
    		vo := auxIntToValAndOff(v.AuxInt)
    		sym := auxToSym(v.Aux)
    		ptr := v_0
    		mem := v_1
    		if !(vo.Val() != 0) {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 22:42:34 UTC 2023
    - 21.4K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (CMPLconst (MOVLconst [x]) [y]) && x>y && uint32(x)>uint32(y) => (FlagGT_UGT)
    (CMPWconst (MOVLconst [x]) [y]) && int16(x)==y => (FlagEQ)
    (CMPWconst (MOVLconst [x]) [y]) && int16(x)<y && uint16(x)<uint16(y) => (FlagLT_ULT)
    (CMPWconst (MOVLconst [x]) [y]) && int16(x)<y && uint16(x)>uint16(y) => (FlagLT_UGT)
    (CMPWconst (MOVLconst [x]) [y]) && int16(x)>y && uint16(x)<uint16(y) => (FlagGT_ULT)
    (CMPWconst (MOVLconst [x]) [y]) && int16(x)>y && uint16(x)>uint16(y) => (FlagGT_UGT)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewrite386.go

    	// match: (CMPW x (MOVLconst [c]))
    	// result: (CMPWconst x [int16(c)])
    	for {
    		x := v_0
    		if v_1.Op != Op386MOVLconst {
    			break
    		}
    		c := auxIntToInt32(v_1.AuxInt)
    		v.reset(Op386CMPWconst)
    		v.AuxInt = int16ToAuxInt(int16(c))
    		v.AddArg(x)
    		return true
    	}
    	// match: (CMPW (MOVLconst [c]) x)
    	// result: (InvertFlags (CMPWconst x [int16(c)]))
    	for {
    		if v_0.Op != Op386MOVLconst {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
Back to top