summaryrefslogtreecommitdiffstats
path: root/asm-tests/powerpc.S
diff options
context:
space:
mode:
Diffstat (limited to 'asm-tests/powerpc.S')
-rw-r--r--asm-tests/powerpc.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/asm-tests/powerpc.S b/asm-tests/powerpc.S
new file mode 100644
index 0000000..396a6cc
--- /dev/null
+++ b/asm-tests/powerpc.S
@@ -0,0 +1,8 @@
+/* clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly
+ used by gcrypt */
+/* Cache invalidation loop is a fair test. */
+ li 5, 0
+1: icbi 5, 3
+ addi 5, 5, 32
+ cmpw 5, 4
+ blt 1b