Skip to content

Commit a57a314

Browse files
committed
tag vgetq_lane_u32 as fmov instead of umov
1 parent 7bab346 commit a57a314

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/core_arch/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
fn main() -> io::Result<()> {
1+
fn main() {
22
println!("cargo:rustc-cfg=core_arch_docs");
33
}

crates/core_arch/src/arm/neon/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,9 @@ pub unsafe fn vgetq_lane_u16(v: uint16x8_t, imm5: i32) -> u16 {
12091209
#[target_feature(enable = "neon")]
12101210
#[cfg_attr(target_arch = "arm", target_feature(enable = "v7"))]
12111211
#[rustc_args_required_const(1)]
1212-
#[cfg_attr(test, assert_instr(umov, imm5 = 0))]
1212+
// see: https://clang.godbolt.org/z/J5xS2T
1213+
//#[cfg_attr(test, assert_instr(umov, imm5 = 0))]
1214+
#[cfg_attr(test, assert_instr(fmov, imm5 = 0))]
12131215
pub unsafe fn vgetq_lane_u32(v: uint32x4_t, imm5: i32) -> u32 {
12141216
if (imm5) < 0 || (imm5) > 3 {
12151217
unreachable_unchecked()

0 commit comments

Comments
 (0)