Corrected issue #59

Out of bound access for arm_correlate MVE implementations.
pull/64/head
Christophe Favergeon 3 years ago
parent 54be9aeaee
commit 0705c67568

@ -418,7 +418,7 @@ void arm_correlate_f16(
pA++; pA++;
} }
for (i = block3 - 1; i >= 0; i -= 2) for (i = block3 - 1; i > 0; i -= 2)
{ {
uint32_t count = (i + 1); uint32_t count = (i + 1);

@ -268,7 +268,7 @@ void arm_correlate_f32(
pA++; pA++;
} }
for (i = block3 - 1; i >= 0; i -= 2) for (i = block3 - 1; i > 0; i -= 2)
{ {
uint32_t count = (i + 1); uint32_t count = (i + 1);

@ -226,7 +226,7 @@ void arm_correlate_q15(
pA++; pA++;
} }
for (i = block3 - 1; i >= 0; i -= 2) for (i = block3 - 1; i > 0; i -= 2)
{ {
uint32_t count = (i + 1); uint32_t count = (i + 1);

@ -220,7 +220,7 @@ void arm_correlate_q31(
pA++; pA++;
} }
for (i = block3 - 1; i >= 0; i -= 2) for (i = block3 - 1; i > 0; i -= 2)
{ {
uint32_t count = (i + 1); uint32_t count = (i + 1);

@ -220,7 +220,7 @@ void arm_correlate_q7(
pA++; pA++;
} }
for (i = block3 - 1; i >= 0; i -= 2) for (i = block3 - 1; i > 0; i -= 2)
{ {
uint32_t count = (i + 1); uint32_t count = (i + 1);
int32_t acc0 = 0LL; int32_t acc0 = 0LL;

@ -1,10 +1,16 @@
ECHO OFF ECHO OFF
ECHO "Gen Test" ECHO "Gen Test"
cd .. cd ..
python processTests.py -f Output.pickle -e TransformRF32 python processTests.py -f Output.pickle -e MISC
cd cmsis_build cd cmsis_build
ECHO "Build" ECHO "Build"
cbuild "test.Release+VHT-Corstone-300.cprj" cbuild "test.Release+VHT-Corstone-300.cprj"
ECHO "Run" ECHO "Run"
C:\Keil_v5\ARM\VHT\VHT_Corstone_SSE-300_Ethos-U55.exe -f configs/ARM_VHT_Corstone_300_config.txt -a cpu0="out\test\VHT-Corstone-300\Release\test.Release+VHT-Corstone-300.axf" > results_cs300_u55.txt C:\Keil_v5\ARM\VHT\VHT_Corstone_SSE-300_Ethos-U55.exe -f configs/ARM_VHT_Corstone_300_config.txt -a cpu0="out\test\VHT-Corstone-300\Release\test.Release+VHT-Corstone-300.axf" > results_cs300_u55.txt
python ..\processResult.py -f ..\Output.pickle -e -r results_cs300_u55.txt python ..\processResult.py -f ..\Output.pickle -e -r results_cs300_u55.txt
REM ECHO "Build"
REM cbuild "test.Release+VHT_M7_UNROLLED.cprj"
REM ECHO "Run"
REM C:\Keil_v5\ARM\VHT\VHT_MPS2_Cortex-M7.exe -f configs/ARM_VHT_MPS2_M7DP_config.txt out\test\VHT_M7_UNROLLED\Release\test.Release+VHT_M7_UNROLLED.axf > results_m7_unrolled.txt
REM python ..\processResult.py -f ..\Output.pickle -e -r results_m7_unrolled.txt

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd"> <cprj schemaVersion="1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CPRJ.xsd">
<created timestamp="2022-10-27T08:07:02" tool="csolution 1.1.0"/> <created timestamp="2022-10-27T08:41:55" tool="csolution 1.1.0"/>
<info isLayer="false"> <info isLayer="false">
<description>Automatically generated project</description> <description>Automatically generated project</description>

@ -35,9 +35,6 @@ solution:
#- type: VHT-Corstone-310 #- type: VHT-Corstone-310
# device: ARM::SSE-310-MPS3 # device: ARM::SSE-310-MPS3
#- type: VHT-Corstone-300
# device: ARM::SSE-300-MPS3
- type: FVP_M55 - type: FVP_M55
device: ARMCM55 device: ARMCM55
defines: defines:

Loading…
Cancel
Save