Skip to content

Commit 9c94247

Browse files
committed
add a compatibilty test for the recent fixes and improvements
Just to double-check and ensure that we're still matching the binary output of binutils-esp32ulp
1 parent 33b4d3d commit 9c94247

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/compat/fixes.S

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file tests various fixes to the assembler,
2+
# to ensure the binary output matches that of binutils.
3+
# a) support for left-aligned directives (e.g. .set without preceding whitespace)
4+
# b) a crash-fix related to data items in the .bss section
5+
# c) support for marking labels as global
6+
# d) support for upper case ULP opcode names
7+
#
8+
.set gpio, 2
9+
10+
.bss
11+
12+
counter:
13+
.long 0
14+
15+
.text
16+
.global entry
17+
entry:
18+
MOVE R1, gpio
19+
WAIT 42
20+
halt

0 commit comments

Comments
 (0)