Skip to content

Commit 9c269c3

Browse files
kito-chengcmuellner
authored andcommitted
Add filling-one for tail/mask agnostic on qemu
Default behavior of qemu is treat tail/mask agnostic as tail/mask undisturbed, and this may hidding some problem, one example is [PR115725](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115725) for GCC.
1 parent 22af4b5 commit 9c269c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/march-to-cpu-opt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ def print_qemu_cpu():
163163

164164
if CPU_OPTIONS['vlen']:
165165
cpu_options.append("vlen={0}".format(CPU_OPTIONS['vlen']))
166+
# Enable fill one semantic for tail/mask agnostic, this could discover
167+
# more potential bug.
168+
cpu_options.append("rvv_ta_all_1s=true")
169+
cpu_options.append("rvv_ma_all_1s=true")
166170

167171
disable_all_fd = False
168172
for ext in CPU_OPTIONS['extensions']:

0 commit comments

Comments
 (0)