Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestPCALIGN (0.17 sec)

  1. src/cmd/internal/obj/arm64/asm_arm64_test.go

    	if out, err := cmd.CombinedOutput(); err != nil {
    		t.Errorf("%v\n%s", err, out)
    	}
    }
    
    // TestPCALIGN verifies the correctness of the PCALIGN by checking if the
    // code can be aligned to the alignment value.
    func TestPCALIGN(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	dir, err := os.MkdirTemp("", "testpcalign")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(dir)
    	tmpfile := filepath.Join(dir, "test.s")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:46:11 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/x86/asm_test.go

    				regName := rconv(int(reg))
    				t.Errorf("regIndex(%s):\nhave: %d\nwant: %d",
    					regName, have, want)
    			}
    		}
    	}
    }
    
    // TestPCALIGN verifies the correctness of the PCALIGN by checking if the
    // code can be aligned to the alignment value.
    func TestPCALIGN(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	dir := t.TempDir()
    	tmpfile := filepath.Join(dir, "test.s")
    	tmpout := filepath.Join(dir, "test.o")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 19:39:51 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/riscv/asm_test.go

    	cmd.Dir = "testdata/testbranch"
    	if out, err := testenv.CleanCmdEnv(cmd).CombinedOutput(); err != nil {
    		t.Errorf("Branch test failed: %v\n%s", err, out)
    	}
    }
    
    func TestPCAlign(t *testing.T) {
    	dir := t.TempDir()
    	tmpfile := filepath.Join(dir, "x.s")
    	asm := `
    TEXT _stub(SB),$0-0
    	FENCE
    	PCALIGN	$8
    	FENCE
    	RET
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 01:50:18 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top