summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/GlobalISel/inline-asm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/GlobalISel/inline-asm.ll')
-rw-r--r--test/CodeGen/AArch64/GlobalISel/inline-asm.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/GlobalISel/inline-asm.ll b/test/CodeGen/AArch64/GlobalISel/inline-asm.ll
new file mode 100644
index 000000000000..8ff7c4495dcc
--- /dev/null
+++ b/test/CodeGen/AArch64/GlobalISel/inline-asm.ll
@@ -0,0 +1,10 @@
+; RUN: llc -mtriple=aarch64 -global-isel -global-isel-abort=2 %s -o - | FileCheck %s
+
+; CHECK-LABEL: test_asm:
+; CHECK: {{APP|InlineAsm Start}}
+; CHECK: mov x0, {{x[0-9]+}}
+; CHECK: {{NO_APP|InlineAsm End}}
+define void @test_asm() {
+ call void asm sideeffect "mov x0, $0", "r"(i64 42)
+ ret void
+}