Commit 0d2fed9
LoongArch: optimize half of vector copy for V4DFmode.
Repalce xvpermi to xvbsrl when vector of V4DFmode high 64 bits copy to
low 64 bits, reduce 2 insn delays.
gcc/ChangeLog:
* config/loongarch/lasx.md (lasx_xvbsrl_d_f): New template.
* config/loongarch/loongarch.cc (emit_reduc_half): Replace insn.
gcc/testsuite/ChangeLog:
* gcc.target/loongarch/vec_reduc_half.c: New test.1 parent 522f07d commit 0d2fed9
File tree
3 files changed
+21
-1
lines changed- gcc
- config/loongarch
- testsuite/gcc.target/loongarch
3 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
| 2705 | + | |
| 2706 | + | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
2705 | 2715 | | |
2706 | 2716 | | |
2707 | 2717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10092 | 10092 | | |
10093 | 10093 | | |
10094 | 10094 | | |
10095 | | - | |
| 10095 | + | |
10096 | 10096 | | |
10097 | 10097 | | |
10098 | 10098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments