]> git.lizzy.rs Git - rust.git/blob - tests/codegen/move-operands.rs
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / codegen / move-operands.rs
1 // compile-flags: -C no-prepopulate-passes -Zmir-enable-passes=+DestinationPropagation
2
3 #![crate_type = "lib"]
4
5 type T = [u8; 256];
6
7 #[no_mangle]
8 pub fn f(a: T, b: fn(_: T, _: T)) {
9     // CHECK: call void @llvm.memcpy.{{.*}}({{i8\*|ptr}} align 1 %{{.*}}, {{i8\*|ptr}} align 1 %{{.*}}, {{.*}} 256, i1 false)
10     // CHECK-NOT: call void @llvm.memcpy.{{.*}}({{i8\*|ptr}} align 1 %{{.*}}, {{i8\*|ptr}} align 1 %{{.*}}, {{.*}} 256, i1 false)
11     b(a, a)
12 }