Skip to content

Commit 803623e

Browse files
committed
Add ptr argument check
1 parent 61576b0 commit 803623e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/codegen/simd/repr-packed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn load<T, const N: usize>(v: Simd<T, N>) -> FullSimd<T, N> {
2626
// CHECK-LABEL: @square_packed
2727
#[no_mangle]
2828
pub fn square_packed(x: Simd<f32, 3>) -> FullSimd<f32, 3> {
29+
// CHECK: align 4 dereferenceable(12) %x
2930
// CHECK: load <3 x float>, ptr %x, align 4
3031
let x = load(x);
3132
unsafe { simd_mul(x, x) }

0 commit comments

Comments
 (0)