var platformEnvs … const invalidPCAlignSrc … const validPCAlignSrc … const x64pgm … const x32pgm … const x16pgm … const x0pgm … const x64pgmA64 … const x64pgmA32 … // Test that nops are inserted when crossing 64B boundaries, and // alignment is adjusted to avoid crossing. func TestPfxAlign(t *testing.T) { … } // TestLarge generates a very large file to verify that large // program builds successfully, and branches which exceed the // range of BC are rewritten to reach. func TestLarge(t *testing.T) { … } // gen generates a very large program with a very long forward and backwards conditional branch. func gen(buf *bytes.Buffer, jmpinsn string) { … } // 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) { … } // Verify register constants are correctly aligned. Much of the ppc64 assembler assumes masking out significant // bits will produce a valid register number: // REG_Rx & 31 == x // REG_Fx & 31 == x // REG_Vx & 31 == x // REG_VSx & 63 == x // REG_SPRx & 1023 == x // REG_CRx & 7 == x // // VR and FPR disjointly overlap VSR, interpreting as VSR registers should produce the correctly overlapped VSR. // REG_FPx & 63 == x // REG_Vx & 63 == x + 32 func TestRegValueAlignment(t *testing.T) { … } // Verify interesting obj.Addr arguments are classified correctly. func TestAddrClassifier(t *testing.T) { … } // The optab size should remain constant when reinitializing the PPC64 assembler backend. func TestOptabReinit(t *testing.T) { … }