base/regdump.[ch], etc.: Fancy register dumping infrastructure.
[catacomb] / base / test-regdump-a64.S
diff --git a/base/test-regdump-a64.S b/base/test-regdump-a64.S
new file mode 100644 (file)
index 0000000..f91331e
--- /dev/null
@@ -0,0 +1,27 @@
+#include "config.h"
+#include "asm-common.h"
+#include "regdump.h"
+
+       .text
+
+       .p2align 5
+vec:
+       .long   1, 2, 3, 4, 5, 6, 7, 8
+
+FUNC(main)
+
+       pushreg x29, x30
+       setfp
+  endprologue
+
+       bl      regdump_init
+
+       cmp     x0, x0
+       reg     "simd", v1
+
+       mov     w0, #0
+       dropfp
+       popreg  x29, x30
+       ret
+
+ENDFUNC