Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/python/codegen/test_target_codegen_llvm_vla.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ def my_func(a: T.handle):
mod = tvm.tirx.build(my_func)

llvm = mod.inspect_source("ll")
assert re.findall(
r"shufflevector \(<vscale x 4 x float> insertelement \(<vscale x 4 x float>", llvm
# Older LLVM versions print the broadcast as a shufflevector of an insertelement,
# newer ones print it as a splat constant.
assert (
"shufflevector (<vscale x 4 x float> insertelement (<vscale x 4 x float>" in llvm
or "store <vscale x 4 x float> splat (float 1.000000e+00)" in llvm
), "No scalable broadcast in generated LLVM."
assert re.findall(r" store <vscale x 4 x float>", llvm), "No scalable store in generated LLVM."

Expand Down
Loading