Skip to content

Comments

Modify sve.rs and sve2.rs#2

Open
ruanyuxin wants to merge 1 commit intoJamieCunliffe:sve-typesfrom
ruanyuxin:sve-intrinsic
Open

Modify sve.rs and sve2.rs#2
ruanyuxin wants to merge 1 commit intoJamieCunliffe:sve-typesfrom
ruanyuxin:sve-intrinsic

Conversation

@ruanyuxin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants