summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/inline-asm-clobber.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AArch64/inline-asm-clobber.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/inline-asm-clobber.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/inline-asm-clobber.ll b/llvm/test/CodeGen/AArch64/inline-asm-clobber.ll
new file mode 100644
index 00000000000..028cf0b6db1
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/inline-asm-clobber.ll
@@ -0,0 +1,8 @@
+; RUN: llc <%s -mtriple=aarch64-none-eabi 2>&1 | FileCheck %s
+
+; CHECK: warning: inline asm clobber list contains reserved registers: SP
+
+define void @foo() nounwind {
+ call void asm sideeffect "mov x7, #1", "~{x7},~{sp}"()
+ ret void
+}
OpenPOWER on IntegriCloud