Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for asmKind (0.07 sec)

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

    	"reflect"
    	"regexp"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    // Matches lines in genssa output that are marked "isstmt", and the parenthesized plus-prefixed line number is a submatch
    var asmLine *regexp.Regexp = regexp.MustCompile(`^\s[vb]\d+\s+\d+\s\(\+(\d+)\)`)
    
    // this matches e.g.                            `   v123456789   000007   (+9876654310) MOVUPS	X15, ""..autotmp_2-32(SP)`
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/flags_test.go

    	}
    	coverage := map[flagConstant]bool{}
    	for _, x := range numbers {
    		for _, y := range numbers {
    			a := logicFlags64(x & y)
    			b := flagRegister2flagConstant(asmAndFlags(x, y), false)
    			if a != b {
    				t.Errorf("asmAnd diff: x=%x y=%x got=%s want=%s\n", x, y, a, b)
    			}
    			coverage[a] = true
    		}
    	}
    	if len(coverage) != 3 {
    		t.Errorf("coverage too small, got %d want 3", len(coverage))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:36:17 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top