aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/inline-asm-constraints-badK2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/inline-asm-constraints-badK2.ll')
-rw-r--r--test/CodeGen/AArch64/inline-asm-constraints-badK2.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/inline-asm-constraints-badK2.ll b/test/CodeGen/AArch64/inline-asm-constraints-badK2.ll
new file mode 100644
index 0000000000..7a5b99e23b
--- /dev/null
+++ b/test/CodeGen/AArch64/inline-asm-constraints-badK2.ll
@@ -0,0 +1,7 @@
+; RUN: not llc -mtriple=aarch64-none-linux-gnu < %s
+
+define void @foo() {
+ ; 32-bit bitpattern ending in 1101 can't be produced.
+ call void asm sideeffect "and w0, w0, $0", "K"(i64 4294967296)
+ ret void
+} \ No newline at end of file