Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 15.5k
define a Simd type in minicore#159656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -5,23 +5,19 @@ | ||
| //@ compile-flags: -Zmerge-functions=disabled | ||
| //@ needs-llvm-components: hexagon | ||
| #![feature(no_core, repr_simd, asm_experimental_arch)] | ||
| #![feature(no_core, asm_experimental_arch)] | ||
| #![crate_type = "rlib"] | ||
| #![no_core] | ||
| #![allow(asm_sub_register, non_camel_case_types)] | ||
| extern crate minicore; | ||
| use minicore::simd::*; | ||
| use minicore::*; | ||
| type ptr = *const i32; | ||
| #[repr(simd)] | ||
| pub struct i32x32([i32; 32]); // 1024-bit HVX vector (128B mode) | ||
| impl Copy for i32x32 {} | ||
| #[repr(simd)] | ||
| pub struct i32x64([i32; 64]); // 2048-bit HVX vector pair (128B mode) | ||
| impl Copy for i32x64 {} | ||
| type i32x32 = Simd<i32, 32>; // 1024-bit HVX vector (128B mode) | ||
| type i32x64 = Simd<i32, 64>; // 2048-bit HVX vector pair (128B mode) | ||
Comment on lines
+19
to
+20
| ||
| extern "C" { | ||
| fn extern_func(); | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-standard (so not a power of 2) types I've left as type aliases in specific tests.
View changes since the review