Commit e49c095
authored
Add qemu test for LoongArch (#3833)
* LoongArch: fix build error with gcc14
With CFLAGS=-Werror, gcc14 outputs errors like below:
In file included from ./codec/common/inc/loongson_intrinsics.h:63,
from codec/common/loongarch/mc_horver_lsx.c:46:
In function ‘__lsx_vilvl_h’,
inlined from ‘McHorVer22WidthEq4_lsx’ at codec/common/loongarch/mc_horver_lsx.c:521:5,
inlined from ‘McHorVer22WidthEq9_lsx’ at codec/common/loongarch/mc_horver_lsx.c:646:3:
/usr/lib/gcc-cross/loongarch64-linux-gnu/14/include/lsxintrin.h:1916:19: warning: ‘dst6’ may be used uninitialized [-Wmaybe-uninitialized]
1916 | return (__m128i)__builtin_lsx_vilvl_h ((v8i16)_1, (v8i16)_2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
codec/common/loongarch/mc_horver_lsx.c: In function ‘McHorVer22WidthEq9_lsx’:
codec/common/loongarch/mc_horver_lsx.c:486:47: note: ‘dst6’ was declared here
486 | __m128i dst0, dst1, dst2, dst3, dst4, dst5, dst6, dst7;
| ^~~~
Note: errors are truncated because too long.
* Run the unit tests on loongarch using qemu-loongarch64-static1 parent 33f7f48 commit e49c095
File tree
2 files changed
+14
-2
lines changed- .github/workflows
- codec/common/loongarch
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
111 | 123 | | |
112 | 124 | | |
113 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| |||
0 commit comments