Rename tests/codegen into tests/codegen-llvm

This commit is contained in:
Guillaume Gomez
2025-07-21 14:34:12 +02:00
parent ed93c1783b
commit a27f3e3fd1
676 changed files with 41 additions and 36 deletions

View File

@@ -0,0 +1,15 @@
//@ compile-flags: -Copt-level=3
#![crate_type = "lib"]
#![feature(array_repeat)]
use std::array::repeat;
// CHECK-LABEL: @byte_repeat
#[no_mangle]
fn byte_repeat(b: u8) -> [u8; 1024] {
// CHECK-NOT: alloca
// CHECK-NOT: store
// CHECK: memset
repeat(b)
}