Skip to content

Commit c3cfc85

Browse files
committed
tests: codegen-llvm: Allow additional LLVM attributes in bpf-alu32
The LLVM backend now emits `noundef zeroext` on `i8` return values and `noundef` on `i8` parameters. Update the FileCheck pattern to match those, and any possible future attributes.
1 parent 4f84d9f commit c3cfc85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/codegen-llvm/bpf-alu32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#[no_mangle]
77
#[target_feature(enable = "alu32")]
8-
// CHECK: define i8 @foo(i8 returned %arg) unnamed_addr #0
8+
// CHECK: define {{.*}}i8 @foo(i8 {{.*}}returned %arg) unnamed_addr #0
99
pub unsafe fn foo(arg: u8) -> u8 {
1010
arg
1111
}

0 commit comments

Comments
 (0)