Skip to content

Commit 8152fc1

Browse files
ticat123MingcongBai
authored andcommitted
LoongArch: fix errors in vec_duplicate
Signed-off-by: Peng Fan <[email protected]>
1 parent de26c05 commit 8152fc1

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
gcc-12 (12.3.0-17deepin5) unstable; urgency=medium
2+
3+
* LoongArch: fix errors in vec_duplicate.
4+
5+
-- Peng Fan <[email protected]> Tue, 16 Jul 2024 03:08:18 +0000
6+
17
gcc-12 (12.3.0-17deepin4) unstable; urgency=medium
28

39
* update build-depends gcc-12.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/src/gcc/config/loongarch/loongarch.cc b/src/gcc/config/loongarch/loongarch.cc
2+
index d0db08c82..03602bfcc 100644
3+
--- a/src/gcc/config/loongarch/loongarch.cc
4+
+++ b/src/gcc/config/loongarch/loongarch.cc
5+
@@ -10400,6 +10400,7 @@ loongarch_expand_vector_init (rtx target, rtx vals)
6+
7+
}
8+
return;
9+
+ }
10+
11+
if (ISA_HAS_LSX)
12+
{
13+
@@ -10553,7 +10554,6 @@ loongarch_expand_vector_init (rtx target, rtx vals)
14+
15+
/* Loongson is the only cpu with vectors with more elements. */
16+
gcc_assert (0);
17+
- }
18+
}
19+
20+
/* Implement HARD_REGNO_CALLER_SAVE_MODE. */

debian/rules.patch

+3-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ debian_patches += \
398398
loong64/0130-LoongArch-Reimplement-multilib-build-option-handling \
399399
loong64/0131-Support-multilib-aware-target-lib-flags-self-specs-o \
400400
loong64/0132-fix-loongarch-t-linux-use-usr-lib-as-multilib-prefix \
401-
loong64/0133-fix-loongarch-driver.h-drop-loongarch-multilib.h
401+
loong64/0133-fix-loongarch-driver.h-drop-loongarch-multilib.h \
402+
loong64/0134-LoongArch-fix-error-in-vec-duplicate
403+
402404

403405
# RISCV backport.
404406
debian_patches += riscv64-inline-subword-atomic

0 commit comments

Comments
 (0)