Skip to content

Commit 6f41874

Browse files
committed
Filter out MLIR :: python/execution_engine.py on Power8
Instructions to convert to/from fp16 was added on Power9 processors. The test "MLIR :: python/execution_engine.py" crashes whenever it's executed on Power8.
1 parent 6d2c6a3 commit 6f41874

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm.spec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,6 +2153,15 @@ test_list_filter_out+=("MLIR :: python/ir/array_attributes.py")
21532153
test_list_filter_out+=("MLIR :: python/execution_engine.py")
21542154
%endif
21552155

2156+
%ifarch ppc64le
2157+
# Support for converting to/from fp16 was added on Power9 processors (aka.
2158+
# Power ISA 3.0). Avoid running this test on servers that do not support
2159+
# this ISA level.
2160+
if ! LD_SHOW_AUXV=1 /bin/true | grep -q arch_3_00; then
2161+
test_list_filter_out+=("MLIR :: python/execution_engine.py")
2162+
fi
2163+
%endif
2164+
21562165
adjust_lit_filter_out test_list_filter_out
21572166

21582167
export PYTHONPATH=%{buildroot}/%{python3_sitearch}

0 commit comments

Comments
 (0)