Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testpcalign (0.15 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)
  5. src/cmd/cgo/internal/test/cgo_test.go

    func Test42018(t *testing.T)                 { test42018(t) }
    func Test45451(t *testing.T)                 { test45451(t) }
    func Test49633(t *testing.T)                 { test49633(t) }
    func TestAlign(t *testing.T)                 { testAlign(t) }
    func TestAtol(t *testing.T)                  { testAtol(t) }
    func TestBlocking(t *testing.T)              { testBlocking(t) }
    func TestBoolAlign(t *testing.T)             { testBoolAlign(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/test.go

    	"fmt"
    	"math"
    	"math/rand"
    	"os"
    	"os/signal"
    	"reflect"
    	"runtime"
    	"runtime/cgo"
    	"sync"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    // alignment
    
    func testAlign(t *testing.T) {
    	var evt C.SDL_KeyboardEvent
    	C.makeEvent(&evt)
    	if C.same(&evt, evt.typ, evt.which, evt.state, evt.keysym.scancode, evt.keysym.sym, evt.keysym.mod, evt.keysym.unicode) == 0 {
    		t.Error("*** bad alignment")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top