summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/avremu/test-suite/complex-memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/avremu/test-suite/complex-memory.c')
-rw-r--r--macros/latex/contrib/avremu/test-suite/complex-memory.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/avremu/test-suite/complex-memory.c b/macros/latex/contrib/avremu/test-suite/complex-memory.c
new file mode 100644
index 0000000000..a05bfdf2ad
--- /dev/null
+++ b/macros/latex/contrib/avremu/test-suite/complex-memory.c
@@ -0,0 +1,22 @@
+#include <avr/io.h>
+
+volatile char foo[30];
+
+int main() {
+ foo[0] = 23;
+ foo[1] = 42;
+ foo[2] = foo[0] + foo[1];
+
+ asm volatile ("break");
+}
+
+/*
+ check-name: Complex Memory Operations
+ check-start:
+ \avr@instr@stepn{1000}
+
+ \avr@test@MEM{96}{00010111} % 23
+ \avr@test@MEM{97}{00101010} % 42
+ \avr@test@MEM{98}{01000001} % 65
+ check-end:
+*/