Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ReverseComparison (0.36 sec)

  1. src/cmd/internal/obj/s390x/condition_code.go

    )
    
    // Inverse returns the complement of the condition code mask.
    func (c CCMask) Inverse() CCMask {
    	return c ^ Always
    }
    
    // ReverseComparison swaps the bits at 0b0100 and 0b0010 in the mask,
    // reversing the behavior of greater than and less than conditions.
    func (c CCMask) ReverseComparison() CCMask {
    	r := c & EqualOrUnordered
    	if c&Less != 0 {
    		r |= Greater
    	}
    	if c&Greater != 0 {
    		r |= Less
    	}
    	return r
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 08 01:46:31 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (CGRJ  {c} (MOVDconst [x]) y yes no) && !is8Bit(x)  && is32Bit(x)  => (BRC {c.ReverseComparison()} (CMPconst   y [int32(x)]) yes no)
    (CRJ   {c} (MOVDconst [x]) y yes no) && !is8Bit(x)  && is32Bit(x)  => (BRC {c.ReverseComparison()} (CMPWconst  y [int32(x)]) yes no)
    (CLGRJ {c} (MOVDconst [x]) y yes no) && !isU8Bit(x) && isU32Bit(x) => (BRC {c.ReverseComparison()} (CMPUconst  y [int32(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)
  3. src/cmd/compile/internal/ssa/rewriteS390X.go

    	v_0 := v.Args[0]
    	// match: (LOCGR {c} x y (InvertFlags cmp))
    	// result: (LOCGR {c.ReverseComparison()} x y cmp)
    	for {
    		c := auxToS390xCCMask(v.Aux)
    		x := v_0
    		y := v_1
    		if v_2.Op != OpS390XInvertFlags {
    			break
    		}
    		cmp := v_2.Args[0]
    		v.reset(OpS390XLOCGR)
    		v.Aux = s390xCCMaskToAux(c.ReverseComparison())
    		v.AddArg3(x, y, cmp)
    		return true
    	}
    	// match: (LOCGR {c} _ x (FlagEQ))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
Back to top