Skip to content

Commit 06edf3d

Browse files
committed
tests: codegen-llvm: Check whether feature is emitted in bpf-alu32 test
Check whether the `"target-feature"` attribure was actually emitted in LLVM IR.
1 parent c757378 commit 06edf3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/codegen-llvm/bpf-alu32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use minicore::*;
1212
#[no_mangle]
1313
#[target_feature(enable = "alu32")]
1414
// CHECK: define {{.*}}i8 @foo(i8 {{.*}}returned %arg) unnamed_addr #0
15+
// CHECK: attributes #0 = { {{.*}}"target-features"="{{[^"]*}}+alu32{{.*}} }
1516
pub unsafe fn foo(arg: u8) -> u8 {
1617
arg
1718
}

0 commit comments

Comments
 (0)