diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-03-16 01:24:57 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2012-04-14 03:48:08 +0400 |
commit | 7d6b9f0a3838632b4c553e0a387af0bbdf4297c0 (patch) | |
tree | 8b6443d45ed0377e15edcd4a83ac0ffe64fd26bf /tests/tcg/xtensa/macros.inc | |
parent | 16c1deae215d4aac5b9b4fc090844b92852a0c5b (diff) |
target-xtensa: improve unit tests debugging
- add testcase announcement;
- add global symbols for individual tests;
- add host-debug-* makefile target.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'tests/tcg/xtensa/macros.inc')
-rw-r--r-- | tests/tcg/xtensa/macros.inc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/tcg/xtensa/macros.inc b/tests/tcg/xtensa/macros.inc index 2d4515e14f..23bf3e96c8 100644 --- a/tests/tcg/xtensa/macros.inc +++ b/tests/tcg/xtensa/macros.inc @@ -29,7 +29,24 @@ main: exit .endm +.macro print text +.data +97: .ascii "\text\n" +98: + .align 4 +.text + movi a2, 4 + movi a3, 2 + movi a4, 97b + movi a5, 98b + sub a5, a5, a4 + simcall +.endm + .macro test name + //print test_\name +test_\name: +.global test_\name .endm .macro test_end |