Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testLoadHitStore (0.16 sec)

  1. src/cmd/compile/internal/test/testdata/loadstore_test.go

    	return uint64(*p) // load and cast
    }
    
    func testLoadHitStore(t *testing.T) {
    	// Test that sign/zero extensions are kept when a load-hit-store
    	// is replaced by a register-register move.
    	{
    		var in int8 = (1 << 6) + 1
    		var p int8
    		got := loadHitStore8(in, &p)
    		want := int32(in * in)
    		if got != want {
    			t.Errorf("testLoadHitStore (int8) failed. want = %d, got = %d", want, got)
    		}
    	}
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top