Further implementation of matrix support
This commit is contained in:
@@ -9,34 +9,46 @@ pub const TEST_KERNEL: Kernel = Kernel([
|
||||
src: File::Bank,
|
||||
dst: File::GrfB { index: 0 },
|
||||
},
|
||||
Instruction::MOV {
|
||||
src: File::Bank,
|
||||
dst: File::GrfA { index: 1 },
|
||||
},
|
||||
Instruction::MOV {
|
||||
src: File::Bank,
|
||||
dst: File::GrfB { index: 1 },
|
||||
},
|
||||
Instruction::MAC {
|
||||
src0: File::Bank,
|
||||
Instruction::ADD {
|
||||
src0: File::GrfA { index: 0 },
|
||||
src1: File::GrfA { index: 0 },
|
||||
src2: File::GrfB { index: 0 },
|
||||
dst: File::GrfA { index: 0 },
|
||||
aam: false,
|
||||
},
|
||||
Instruction::ADD {
|
||||
src0: File::GrfB { index: 0 },
|
||||
src1: File::GrfB { index: 0 },
|
||||
dst: File::GrfB { index: 0 },
|
||||
aam: false,
|
||||
},
|
||||
Instruction::MAC {
|
||||
src0: File::Bank,
|
||||
src1: File::GrfA { index: 1 },
|
||||
src2: File::GrfB { index: 1 },
|
||||
dst: File::GrfB { index: 1 },
|
||||
aam: false,
|
||||
},
|
||||
// Instruction::MOV {
|
||||
// src: File::Bank,
|
||||
// dst: File::GrfA { index: 1 },
|
||||
// },
|
||||
// Instruction::MOV {
|
||||
// src: File::Bank,
|
||||
// dst: File::GrfB { index: 1 },
|
||||
// },
|
||||
// Instruction::MAC {
|
||||
// src0: File::Bank,
|
||||
// src1: File::GrfA { index: 0 },
|
||||
// src2: File::GrfB { index: 0 },
|
||||
// dst: File::GrfB { index: 0 },
|
||||
// aam: false,
|
||||
// },
|
||||
// Instruction::MAC {
|
||||
// src0: File::Bank,
|
||||
// src1: File::GrfA { index: 1 },
|
||||
// src2: File::GrfB { index: 1 },
|
||||
// dst: File::GrfB { index: 1 },
|
||||
// aam: false,
|
||||
// },
|
||||
Instruction::FILL {
|
||||
src: File::GrfA { index: 1 },
|
||||
src: File::GrfA { index: 0 },
|
||||
dst: File::Bank,
|
||||
},
|
||||
Instruction::FILL {
|
||||
src: File::GrfB { index: 1 },
|
||||
src: File::GrfB { index: 0 },
|
||||
dst: File::Bank,
|
||||
},
|
||||
Instruction::EXIT,
|
||||
@@ -63,4 +75,6 @@ pub const TEST_KERNEL: Kernel = Kernel([
|
||||
Instruction::NOP,
|
||||
Instruction::NOP,
|
||||
Instruction::NOP,
|
||||
Instruction::NOP,
|
||||
Instruction::NOP,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user