summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-06-09 19:06:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-06-09 19:06:30 +0000
commit85d8b2bbe386bcfe669575d05b61482d7be07e5d (patch)
tree1dc5e75ab222a9ead44c699eceafab7a6ca7b310 /test/CodeGen/X86/asm-reject-reg-type-mismatch.ll
parent5a5ac124e1efaf208671f01c46edb15f29ed2a0b (diff)
downloadsrc-test-85d8b2bbe386bcfe669575d05b61482d7be07e5d.tar.gz
src-test-85d8b2bbe386bcfe669575d05b61482d7be07e5d.zip
Notes
Diffstat (limited to 'test/CodeGen/X86/asm-reject-reg-type-mismatch.ll')
-rw-r--r--test/CodeGen/X86/asm-reject-reg-type-mismatch.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll b/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll
new file mode 100644
index 0000000000000..016e2d261eef6
--- /dev/null
+++ b/test/CodeGen/X86/asm-reject-reg-type-mismatch.ll
@@ -0,0 +1,10 @@
+; RUN: not llc -no-integrated-as %s -o - 2> %t1
+; RUN: FileCheck %s < %t1
+target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64--"
+
+; CHECK: error: couldn't allocate output register for constraint '{ax}'
+define i128 @blup() {
+ %v = tail call i128 asm "", "={ax},0,~{dirflag},~{fpsr},~{flags}"(i128 0)
+ ret i128 %v
+}