aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/inline-asm-clobber.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/inline-asm-clobber.ll')
-rw-r--r--test/Assembler/inline-asm-clobber.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Assembler/inline-asm-clobber.ll b/test/Assembler/inline-asm-clobber.ll
new file mode 100644
index 000000000000..65c8e444e808
--- /dev/null
+++ b/test/Assembler/inline-asm-clobber.ll
@@ -0,0 +1,10 @@
+; RUN: not llvm-as <%s 2>&1 | FileCheck %s
+
+; "~x{21}" is not a valid clobber constraint.
+
+; CHECK: invalid type for inline asm constraint string
+
+define void @foo() nounwind {
+ call void asm sideeffect "mov x0, #42", "~{x0},~{x19},~x{21}"() nounwind
+ ret void
+}