Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for flagConstant (0.25 sec)

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

    import (
    	"runtime"
    	"testing"
    )
    
    func TestAddFlagsNative(t *testing.T) {
    	var numbers = []int64{
    		1, 0, -1,
    		2, -2,
    		1<<63 - 1, -1 << 63,
    	}
    	coverage := map[flagConstant]bool{}
    	for _, x := range numbers {
    		for _, y := range numbers {
    			a := addFlags64(x, y)
    			b := flagRegister2flagConstant(asmAddFlags(x, y), false)
    			if a != b {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:36:17 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite.go

    func (fc flagConstant) le() bool {
    	return fc.Z() || fc.lt()
    }
    func (fc flagConstant) gt() bool {
    	return !fc.Z() && fc.ge()
    }
    func (fc flagConstant) ge() bool {
    	return fc.N() == fc.V()
    }
    func (fc flagConstant) ult() bool {
    	return !fc.C()
    }
    func (fc flagConstant) ule() bool {
    	return fc.Z() || fc.ult()
    }
    func (fc flagConstant) ugt() bool {
    	return !fc.Z() && fc.uge()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (LT (FlagConstant [fc]) yes no) && !fc.lt() => (First no yes)
    
    (LE (FlagConstant [fc]) yes no) &&  fc.le() => (First yes no)
    (LE (FlagConstant [fc]) yes no) && !fc.le() => (First no yes)
    
    (GT (FlagConstant [fc]) yes no) &&  fc.gt() => (First yes no)
    (GT (FlagConstant [fc]) yes no) && !fc.gt() => (First no yes)
    
    (GE (FlagConstant [fc]) yes no) &&  fc.ge() => (First 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/ARM.rules

    (GE (FlagConstant [fc]) yes no) && !fc.ge() => (First no yes)
    
    (ULT (FlagConstant [fc]) yes no) &&  fc.ult() => (First yes no)
    (ULT (FlagConstant [fc]) yes no) && !fc.ult() => (First no yes)
    
    (ULE (FlagConstant [fc]) yes no) &&  fc.ule() => (First yes no)
    (ULE (FlagConstant [fc]) yes no) && !fc.ule() => (First no yes)
    
    (UGT (FlagConstant [fc]) yes no) &&  fc.ugt() => (First yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteARM.go

    	// cond: 0xff < c
    	// result: (FlagConstant [subFlags32(0, 1)])
    	for {
    		c := auxIntToInt32(v.AuxInt)
    		if v_0.Op != OpARMMOVBUreg || !(0xff < c) {
    			break
    		}
    		v.reset(OpARMFlagConstant)
    		v.AuxInt = flagConstantToAuxInt(subFlags32(0, 1))
    		return true
    	}
    	// match: (CMPconst (MOVHUreg _) [c])
    	// cond: 0xffff < c
    	// result: (FlagConstant [subFlags32(0, 1)])
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/rewriteARM64.go

    	// cond: 0xff < c
    	// result: (FlagConstant [subFlags64(0,1)])
    	for {
    		c := auxIntToInt32(v.AuxInt)
    		if v_0.Op != OpARM64MOVBUreg || !(0xff < c) {
    			break
    		}
    		v.reset(OpARM64FlagConstant)
    		v.AuxInt = flagConstantToAuxInt(subFlags64(0, 1))
    		return true
    	}
    	// match: (CMPWconst (MOVHUreg _) [c])
    	// cond: 0xffff < c
    	// result: (FlagConstant [subFlags64(0,1)])
    	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)
  7. src/cmd/compile/internal/ssa/check.go

    					f.Fatalf("bad type %T for S390XRotateParams in %v", v.Aux, v)
    				}
    				canHaveAux = true
    			case auxFlagConstant:
    				if v.AuxInt < 0 || v.AuxInt > 15 {
    					f.Fatalf("bad FlagConstant AuxInt value for %v", v)
    				}
    				canHaveAuxInt = true
    			default:
    				f.Fatalf("unknown aux type for %s", v.Op)
    			}
    			if !canHaveAux && v.Aux != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		return "int32"
    	case "SymOff":
    		return "int32"
    	case "SymValAndOff":
    		return "ValAndOff"
    	case "TypSize":
    		return "int64"
    	case "CCop":
    		return "Op"
    	case "FlagConstant":
    		return "flagConstant"
    	case "ARM64BitField":
    		return "arm64BitField"
    	default:
    		return "invalid"
    	}
    }
    
    // auxType returns the Go type that this block should store in its aux field.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/op.go

    	auxFloat32                // auxInt is a float32 (encoded with math.Float64bits)
    	auxFloat64                // auxInt is a float64 (encoded with math.Float64bits)
    	auxFlagConstant           // auxInt is a flagConstant
    	auxCCop                   // auxInt is a ssa.Op that represents a flags-to-bool conversion (e.g. LessThan)
    	auxNameOffsetInt8         // aux is a &struct{Name ir.Name, Offset int64}; auxInt is index in parameter registers array
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARMOps.go

    		// comparisons, but we don't use such a beast yet.
    		// This op is for temporary use by rewrite rules. It
    		// cannot appear in the generated assembly.
    		{name: "FlagConstant", aux: "FlagConstant"},
    
    		// (InvertFlags (CMP a b)) == (CMP b a)
    		// InvertFlags is a pseudo-op which can't appear in assembly output.
    		{name: "InvertFlags", argLength: 1}, // reverse direction of arg0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 41K bytes
    - Viewed (0)
Back to top