tweak new codegen test to work on local
This commit is contained in:
parent
045105b1a2
commit
74f2941a8e
@ -21,27 +21,27 @@
|
|||||||
// CHECK-LABEL: @extract_m
|
// CHECK-LABEL: @extract_m
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn extract_m(v: M, i: u32) -> f32 {
|
pub unsafe fn extract_m(v: M, i: u32) -> f32 {
|
||||||
// CHECK: extractelement <4 x float> %0, i32 %i
|
// CHECK: extractelement <4 x float> %_3, i32 %i
|
||||||
simd_extract(v, i)
|
simd_extract(v, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: @extract_s
|
// CHECK-LABEL: @extract_s
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn extract_s(v: S<4>, i: u32) -> f32 {
|
pub unsafe fn extract_s(v: S<4>, i: u32) -> f32 {
|
||||||
// CHECK: extractelement <4 x float> %0, i32 %i
|
// CHECK: extractelement <4 x float> %_3, i32 %i
|
||||||
simd_extract(v, i)
|
simd_extract(v, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: @insert_m
|
// CHECK-LABEL: @insert_m
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn insert_m(v: M, i: u32, j: f32) -> M {
|
pub unsafe fn insert_m(v: M, i: u32, j: f32) -> M {
|
||||||
// CHECK: insertelement <4 x float> %1, float %j, i32 %i
|
// CHECK: insertelement <4 x float> %_4, float %j, i32 %i
|
||||||
simd_insert(v, i, j)
|
simd_insert(v, i, j)
|
||||||
}
|
}
|
||||||
|
|
||||||
// CHECK-LABEL: @insert_s
|
// CHECK-LABEL: @insert_s
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub unsafe fn insert_s(v: S<4>, i: u32, j: f32) -> S<4> {
|
pub unsafe fn insert_s(v: S<4>, i: u32, j: f32) -> S<4> {
|
||||||
// CHECK: insertelement <4 x float> %1, float %j, i32 %i
|
// CHECK: insertelement <4 x float> %_4, float %j, i32 %i
|
||||||
simd_insert(v, i, j)
|
simd_insert(v, i, j)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user