aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/bswap-inline-asm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/bswap-inline-asm.ll')
-rw-r--r--test/CodeGen/ARM/bswap-inline-asm.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/bswap-inline-asm.ll b/test/CodeGen/ARM/bswap-inline-asm.ll
new file mode 100644
index 0000000000..472213d5f8
--- /dev/null
+++ b/test/CodeGen/ARM/bswap-inline-asm.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -mtriple=arm-apple-darwin -mattr=+v6 | FileCheck %s
+
+define i32 @t1(i32 %x) nounwind {
+; CHECK: t1:
+; CHECK-NOT: InlineAsm
+; CHECK: rev
+ %asmtmp = tail call i32 asm "rev $0, $1\0A", "=l,l"(i32 %x) nounwind
+ ret i32 %asmtmp
+}