Skip to content

Commit

Permalink
Updates test case verifying codegen for intenum literal args.
Browse files Browse the repository at this point in the history
    - Allows expected regex to match even when "nonnull" qualifier
      was not found on retval pointer argument of a function call.
  • Loading branch information
diptorupd committed May 7, 2024
1 parent 655aa8b commit 40a51c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numba_dpex/tests/codegen/test_intenum_literal_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def pass_flags_to_func(a):

pattern = re.compile(
r"call spir_func i32 @\_Z.*bitwise\_or"
r"\_flags.*\(i64\* nonnull %.*, i64 1, i64 2\)"
r"\_flags.*\(i64\*\s(\w+)?\s*%.*, i64 1, i64 2\)"
)

assert re.search(pattern, llvm_ir_mod) is not None

0 comments on commit 40a51c7

Please sign in to comment.