This repository was archived by the owner on Mar 20, 2026. It is now read-only.
feat: LIDT命令の実装とday05_harib02i_testの有効化#16
Closed
hangingman wants to merge 9 commits intoissues/12_harib02ifrom
Closed
feat: LIDT命令の実装とday05_harib02i_testの有効化#16hangingman wants to merge 9 commits intoissues/12_harib02ifrom
hangingman wants to merge 9 commits intoissues/12_harib02ifrom
Conversation
This commit introduces `gotestsum` to the project for enhanced test execution and reporting, utilizing the Go 1.24 feature for managing tool dependencies directly in `go.mod`. Key changes: - Added `gotest.tools/gotestsum` as a tool dependency to `go.mod` using `go get -d` and `go mod edit -tool`. - Updated Makefile: - The `test` target now uses `gotestsum` with `short-verbose` format. - Added `test-rerun-fails` target using `gotestsum --rerun-fails`. - Added `test-ci` target using `gotestsum --junitfile report.xml --format dots`. - Makefile test targets use `go run gotest.tools/gotestsum` for execution. - `clean` target updated to remove `report.xml` and `.gotestsum.json`. - Updated GitHub Actions workflow (`.github/workflows/go.yml`): - Added step to `go install gotest.tools/gotestsum@v1.12.3`. - Test execution changed to `make test-ci`. - Added step to upload `report.xml` artifact. This approach replaces the previous `tools.go` method for managing `gotestsum` and aligns with the newer Go tooling standards.
…ool-dep Go 1.24 ツール依存機能を使用して gotestsum を統合する
9958734 to
405472c
Compare
Implemented the LIDT instruction (0F 01 /3) by adding handlers in pass1 and codegen, similar to the existing LGDT implementation. - Added address prefix handling to `handleLIDT` in `internal/codegen/x86gen_lidt.go`. - Corrected the operand type for `LGDT` in the fallback table (`pkg/asmdb/instruction_table_fallback.go`) from "m" to "m32" to fix an issue with instruction size calculation in pass1. This was necessary for the `TestHarib02i` to pass. - Enabled the `TestHarib02i` test case in `test/day05_harib02i_test.go` which now passes.
405472c to
5490b14
Compare
Collaborator
Author
|
raku言語で30日本のすべてでPASSしたのでクローズ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
既存のLGDT実装と同様に、pass1とcodegenにハンドラを追加することで、LIDT命令 (0F 01 /3) を実装しました。
internal/codegen/x86gen_lidt.goのhandleLIDTにアドレスプレフィックスの処理を追加しました。pkg/asmdb/instruction_table_fallback.go) のLGDTのオペランド型を "m" から "m32" に修正しました。これにより、pass1 における命令サイズ計算の問題を修正しました。これはTestHarib02iをパスさせるために必要な変更でした。test/day05_harib02i_test.goのTestHarib02iテストケースを有効化し、パスするようになりました。じゅーるす君に書いてもらったがどうだろうか