Modify sve.rs and sve2.rs #2
Open
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.
The sve.rs and sve2.rs have been modified to conform to the rust syntax of 9/17/2025, allowing for direct compilation.
Compilation method:
① clone https://github.com/davidtwco/rust/ first and then to the sve infrastructur branch
② Modify the content of bootstrap.toml to profile="compiler"
③ build: Run in the ~/sve-infrastructure/rust directory./ x.build --stage 1 --target aarch64-unknown-linux-gnu
④ Compilation Command
Can put the sve.rs and sve2.rs in "~ / sve-infrastructure/rust/tests/codegen-llvm/scalable-vectors/test/sve/" directory. Then run the following command in the "~/sve-infrastructure/rust" directory:
./build/x86_64-unknown-linux-gnu/stage1/bin/rustc
--target=aarch64-unknown-linux-gnu
-C target-feature=+sve,+sve2
--crate-type=lib
--sysroot=./build/x86_64-unknown-linux-gnu/stage1
--out-dir=tests/codegen-llvm/scalable-vectors
--emit=llvm-ir
-A warnings
tests/codegen-llvm/scalable-vectors/test/sve/sve.rs