Skip to content

Commit 0c23500

Browse files
committed
change feature guard to power8-vector as that's when the instructions was introduced
1 parent fe6f4d9 commit 0c23500

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • crates/core_arch/src/powerpc

crates/core_arch/src/powerpc/vsx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ mod sealed {
179179

180180
#[inline]
181181
#[target_feature(enable = "vsx")]
182-
#[cfg_attr(test, assert_instr(xvmindp))]
182+
#[cfg_attr(all(test, target_feature = "power8-vector"), assert_instr(xvmindp))]
183183
unsafe fn vec_xvmindp(a: vector_double, b: vector_double) -> vector_double {
184184
xvmindp(a, b)
185185
}
186186

187187
#[inline]
188188
#[target_feature(enable = "vsx")]
189-
#[cfg_attr(test, assert_instr(xvmaxdp))]
189+
#[cfg_attr(all(test, target_feature = "power8-vector"), assert_instr(xvmaxdp))]
190190
unsafe fn vec_xvmaxdp(a: vector_double, b: vector_double) -> vector_double {
191191
xvmaxdp(a, b)
192192
}

0 commit comments

Comments
 (0)