Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestPCALIGN (0.12 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/ppc64/asm_test.go

    	fmt.Fprintln(buf, "label_end:")
    	fmt.Fprintln(buf, "MOVD R0, R1")
    	fmt.Fprintln(buf, "RET")
    }
    
    // TestPCalign generates two asm files containing the
    // PCALIGN directive, to verify correct values are and
    // accepted, and incorrect values are flagged in error.
    func TestPCalign(t *testing.T) {
    	var pattern8 = `0x...8\s.*ADD\s..,\sR8`
    	var pattern16 = `0x...[80]\s.*MOVD\s..,\sR16`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 22:14:57 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. 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