Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isU8Bit (0.11 sec)

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

    (C(R|GR)J  {c} x (MOVDconst [y]) yes no) && is8Bit(y)  => (C(I|GI)J  {c} x [ int8(y)] yes no)
    (CL(R|GR)J {c} x (MOVDconst [y]) yes no) && isU8Bit(y) => (CL(I|GI)J {c} x [uint8(y)] yes no)
    (C(R|GR)J  {c} (MOVDconst [x]) y yes no) && is8Bit(x)  => (C(I|GI)J  {c.ReverseComparison()} y [ int8(x)] yes no)
    (CL(R|GR)J {c} (MOVDconst [x]) y yes no) && isU8Bit(x) => (CL(I|GI)J {c.ReverseComparison()} y [uint8(x)] yes no)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewriteS390X.go

    		}
    	case BlockS390XCLGRJ:
    		// match: (CLGRJ {c} x (MOVDconst [y]) yes no)
    		// cond: isU8Bit(y)
    		// result: (CLGIJ {c} x [uint8(y)] yes no)
    		for b.Controls[1].Op == OpS390XMOVDconst {
    			x := b.Controls[0]
    			v_1 := b.Controls[1]
    			y := auxIntToInt64(v_1.AuxInt)
    			c := auxToS390xCCMask(b.Aux)
    			if !(isU8Bit(y)) {
    				break
    			}
    			b.resetWithControl(BlockS390XCLGIJ, x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewrite.go

    func is16Bit(n int64) bool {
    	return n == int64(int16(n))
    }
    
    // is8Bit reports whether n can be represented as a signed 8 bit integer.
    func is8Bit(n int64) bool {
    	return n == int64(int8(n))
    }
    
    // isU8Bit reports whether n can be represented as an unsigned 8 bit integer.
    func isU8Bit(n int64) bool {
    	return n == int64(uint8(n))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top