Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
3180113a
Commit
3180113a
authored
May 26, 2022
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/micropython: Make import_mpy_native_gc run on ARMv6-M and above.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
4290d513
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
tests/micropython/import_mpy_native_gc.py
tests/micropython/import_mpy_native_gc.py
+5
-5
No files found.
tests/micropython/import_mpy_native_gc.py
View file @
3180113a
...
...
@@ -50,13 +50,13 @@ class UserFS:
features0_file_contents
=
{
# -march=x64
0x806
:
b'M
\x06\b\x1f\x01\x00
4build/features0.native.mpy
\x00\x8a
B
\xe9
/
\x00\x00\x00
SH
\x8b\x1d\x83\x00\x00\x00\xbe\x02\x00\x00\x00\xff
S
\x18\xbf\x01\x00\x00\x00
H
\x85\xc0
u
\x0c
H
\x8b
C
\xbe\x02\x00\x00\x00
[
\xff\xe0
H
\x0f\xaf\xf8
H
\xff\xc8\xeb\xe6
ATUSH
\x8b\x1d
Q
\x00\x00\x00
H
\x8b
G
\x08
L
\x8b
c(H
\x8b
x
\x08
A
\xff\xd4
H
\x8d
5+
\x00\x00\x00
H
\x89\xc5
H
\x8b\x05
9
\x00\x00\x00\x0f\xb7
8
\xff
ShH
\x89\xef
A
\xff\xd4
H
\x8b\x03
[]A
\\\xc3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x85\x00\x12
factorial
\x00\x10\r
$
\x01
&
\x9f
\x01
"
\xff
'
,
# -march=armv
7
m
0x1
406
:
b"M
\x06\x14\x1f\x01\x00
4build/features0.native.mpy
\x00\x88
B
\x1a\xe0\x00\x00\x13\xb5\n
K
\n
J{D
\x9c
X
\x02
!
\xe3
h
\x98
G
\x03
F
\x01
3
\xb9\x02
!#i
\x01\x93\x02\xb0\xbd\xe8\x10
@
\x18
GXC
\x01
;
\xf4\xe7\x00\xbf
n
\x00\x00\x00\x00\x00\x00\x00\xf8\xb5\n
N
\n
K~D
\xf4
XChgiXh
\xb8
G
\x05
F
\x07
K
\x08
I
\xf2
XyD
\x10\x88
ck
\x98
G(F
\xb8
G h
\xf8\xbd\x00\xbf
:
\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x84\x00\x00\x00\x00\x00\x00\x00\x01\x84\x10\x12
factorial
\x00\x10\r
>
\x01
@
\x9f
:
\x01
<
\xff
"
,
# -march=armv
6
m
0x1
006
:
b'M
\x06\x10\x1f\x01\x00
4build/features0.native.mpy
\x00\x88
"
\x18\xe0\x00\x00\x10\xb5\t
K
\t
J{D
\x9c
X
\x02
!
\xe3
h
\x98
G
\x03\x00\x01
\x00
+
\x02\xd0
XC
\x01
;
\xfa\xe7\x02
!#i
\x98
G
\x10\xbd\xc0
Fj
\x00\x00\x00\x00\x00\x00\x00\xf8\xb5\n
N
\n
K~D
\xf4
XChgiXh
\xb8
G
\x05\x00\x07
K
\x08
I
\xf3
XyD
\x18\x88
ck
\x98
G(
\x00\xb8
G h
\xf8\xbd\xc0
F:
\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x1e\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x01\x84\x00\x12
factorial
\x00\x10\r
<
\x01
>
\x9f
8
\x01
:
\xff
'
,
}
# Populate
other armv7m-derived archs based on armv7
m.
for
arch
in
(
0x1806
,
0x1C06
,
0x2006
):
features0_file_contents
[
arch
]
=
features0_file_contents
[
0x1
4
06
]
# Populate
armv7m-derived archs based on armv6
m.
for
arch
in
(
0x1
406
,
0x1
806
,
0x1C06
,
0x2006
):
features0_file_contents
[
arch
]
=
features0_file_contents
[
0x1
0
06
]
if
sys
.
implementation
.
_mpy
not
in
features0_file_contents
:
print
(
"SKIP"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment