summaryrefslogtreecommitdiffstats
path: root/asm-tests/arm.S
diff options
context:
space:
mode:
Diffstat (limited to 'asm-tests/arm.S')
-rw-r--r--asm-tests/arm.S20
1 files changed, 20 insertions, 0 deletions
diff --git a/asm-tests/arm.S b/asm-tests/arm.S
new file mode 100644
index 0000000..97c2546
--- /dev/null
+++ b/asm-tests/arm.S
@@ -0,0 +1,20 @@
+/* on arm clang doesn't support .arch directive */
+
+ .text
+ .syntax unified
+
+#if !defined (__thumb2__)
+ .arch armv7a
+ .arm
+#else
+ .arch armv7
+ .thumb
+#endif
+ mcr p15, 0, r11, c7, c14, 2
+
+ /* clang restricts access to dsb/isb despite .arch */
+ dsb
+ isb
+
+
+