fix(asm): correct RISC-V operand order and complete RVC compression
Assisted-by: DeepSeek V4 Pro
This commit is contained in:
@@ -17,7 +17,17 @@ import (
|
||||
// relocation fields of static-symbol references are masked before the
|
||||
// comparison, since the toolchain leaves them zero for the linker.
|
||||
func TestGroundTruthRISCV(t *testing.T) {
|
||||
path := "../testdata/verify/basic_riscv64.s"
|
||||
for _, path := range []string{
|
||||
"../testdata/verify/basic_riscv64.s",
|
||||
"../testdata/verify/rvc_riscv64.s",
|
||||
} {
|
||||
t.Run(path, func(t *testing.T) {
|
||||
testGroundTruthRISCVFile(t, path)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func testGroundTruthRISCVFile(t *testing.T, path string) {
|
||||
src, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
t.Fatalf("read: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user