Skip to contentSkip to conversation

tcg-next pull

GIT PULL Applied Richard Henderson 3 participants 4 messages Jul 20, 2018 – Jul 21, 2018

lore
Share & tools
lore
#0 lore raw

Just one patch for rc2, fixing a bug with an aarch64 host emulating sve instructions.

r~

The following changes since commit e1ea55668ffe6ce558a063f3a9621b761738e1f2:

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2018-07-19 15:38:06 +0100)

are available in the Git repository at:

https://github.com/rth7680/qemu.git tags/pull-tcg-20180719

for you to fetch changes up to e65a5f227d77a5dbae7a7123c3ee915ee4bd80cf:

tcg/aarch64: limit mul_vec size (2018-07-19 09:07:31 -0700)

----------------------------------------------------------------
Fix aarch64 host vector mul

----------------------------------------------------------------
Alex Bennée (1):
tcg/aarch64: limit mul_vec size

 tcg/aarch64/tcg-target.inc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#1 lore raw

[Qemu-devel] [PULL for-3.0 1/1] tcg/aarch64: limit mul_vec size

From: Alex Bennée <[email protected]>

In AdvSIMD we can only do 32x32 integer multiples although SVE is capable of larger 64 bit multiples. As a result we can end up generating invalid opcodes. Fix this by only reprting we can emit mul vector ops if the size is small enough.

Fixes a crash on:

sve-all-short-v8.3+sve@vq3/insn_mul_z_zi___INC.risu.bin

When running on AArch64 hardware.

Message-Id: <[email protected]> [rth: Removed the tcg_debug_assert -- there are plenty of other cases that we do not diagnose within the insn encoding helpers.]

---
 tcg/aarch64/tcg-target.inc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tcg/aarch64/tcg-target.inc.c +2 -1
index 4562d36d1b..083592a4d7 100644
@@ -2219,7 +2219,6 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)
     switch (opc) {
     case INDEX_op_add_vec:
     case INDEX_op_sub_vec:
-    case INDEX_op_mul_vec:
     case INDEX_op_and_vec:
     case INDEX_op_or_vec:
     case INDEX_op_xor_vec:
@@ -2232,6 +2231,8 @@ int tcg_can_emit_vec_op(TCGOpcode opc, TCGType type, unsigned vece)
     case INDEX_op_shri_vec:
     case INDEX_op_sari_vec:
         return 1;
+    case INDEX_op_mul_vec:
+        return vece < MO_64;
 
     default:
         return 0;
Signature · 1 line
2.17.1
#2 lore raw
In reply to Richard Henderson
Quoted 15 lines · Richard Henderson

Just one patch for rc2, fixing a bug with an aarch64 host emulating sve instructions.

r~

The following changes since commit e1ea55668ffe6ce558a063f3a9621b761738e1f2:

Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2018-07-19 15:38:06 +0100)

are available in the Git repository at:

https://github.com/rth7680/qemu.git tags/pull-tcg-20180719

Quoted 8 lines

for you to fetch changes up to e65a5f227d77a5dbae7a7123c3ee915ee4bd80cf:

tcg/aarch64: limit mul_vec size (2018-07-19 09:07:31 -0700)

----------------------------------------------------------------
Fix aarch64 host vector mul

----------------------------------------------------------------

Applied, thanks.

-- PMM

#3 lore raw
In reply to Richard Henderson
This series seems to have some coding style problems. See output below for more information:

Hi,

This series seems to have some coding style problems. See output below for more information:

Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PULL for-3.0 0/1] tcg-next pull

=== TEST SCRIPT BEGIN ===
#!/bin/bash

BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0

git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram

commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do

    echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
    if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
        failed=1
        echo
    fi
    n=$((n+1))

done

exit $failed
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
fatal: unable to access 'https://github.com/patchew-project/qemu/': Encountered end of file
error: Could not fetch 3c8cf5a9c21ff8782164d1def7f44bd888713384
Traceback (most recent call last):
File "/usr/bin/patchew", line 442, in test_one

    git_clone_repo(clone, r["repo"], r["head"], logf)

File "/usr/bin/patchew", line 48, in git_clone_repo
stdout=logf, stderr=logf)
File "/usr/lib64/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'remote', 'add', '-f', '--mirror=fetch', '3c8cf5a9c21ff8782164d1def7f44bd888713384', 'https://github.com/patchew-project/qemu']' returned non-zero exit status 1.

---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]