Skip to content

Commit

Permalink
Fix intrinsics mismatch: vaddwod
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 13, 2023
1 parent 329950b commit c0915b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions check_lsx.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import glob

# Update gh-pages before running:
# git fetch origin
# Initial worktree:
# git worktree add -f ../gh-pages gh-pages
# git -C ../gh-pages reset origin/gh-pages --hard
# Update gh-pages before running:
# git fetch origin gh-pages && git -C ../gh-pages reset origin/gh-pages --hard

# gcc intrinsics
gcc_intrinsics = set()
Expand Down
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ def vadd_mul_sub_w_ev_od(op, desc, even_odd, wide, narrow, narrow2=None):
narrow_width = widths[narrow]
signedness = signednesses[narrow]
signedness2 = signednesses[narrow2]
if even_odd == "even":
suffix = "ev"
else:
suffix = "od"
return instruction(
intrinsic=f"__m128i __lsx_v{op}wev_{wide}_{narrow}{intrinsic_suffix} (__m128i a, __m128i b)",
intrinsic=f"__m128i __lsx_v{op}w{suffix}_{wide}_{narrow}{intrinsic_suffix} (__m128i a, __m128i b)",
instr=f"v{op}wev.{wide}.{narrow}{inst_suffix} vr, vr, vr",
desc=f"{desc} {even_odd}-positioned {signedness} {narrow_width}-bit elements in `a` and {signedness2} elements in `b`, save the {wide_width}-bit result in `dst`.",
)
Expand Down

0 comments on commit c0915b2

Please sign in to comment.