Rename tests/codegen into tests/codegen-llvm
This commit is contained in:
15
tests/codegen-llvm/array-clone.rs
Normal file
15
tests/codegen-llvm/array-clone.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
//@ compile-flags: -Copt-level=3
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
// CHECK-LABEL: @array_clone
|
||||
#[no_mangle]
|
||||
pub fn array_clone(a: &[u8; 2]) -> [u8; 2] {
|
||||
// CHECK-NOT: getelementptr
|
||||
// CHECK-NOT: load i8
|
||||
// CHECK-NOT: zext
|
||||
// CHECK-NOT: shl
|
||||
// CHECK: load i16
|
||||
// CHECK-NEXT: ret i16
|
||||
a.clone()
|
||||
}
|
||||
Reference in New Issue
Block a user