summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/inlineasm4.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-08-10 16:26:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-08-10 16:26:42 +0000
commit36a3abc671ffa0fa673eaa7949e01ed8e0f43008 (patch)
treeef015938ac8ab925ee011cf190440c48bdaa7823 /llvm/test/CodeGen/ARM/inlineasm4.ll
parent05a51ae0cf401e7eee44e16b4a210a5c38ca6e91 (diff)
downloadbcm5719-llvm-36a3abc671ffa0fa673eaa7949e01ed8e0f43008.tar.gz
bcm5719-llvm-36a3abc671ffa0fa673eaa7949e01ed8e0f43008.zip
Add support for the R and Q constraints.
llvm-svn: 137217
Diffstat (limited to 'llvm/test/CodeGen/ARM/inlineasm4.ll')
-rw-r--r--llvm/test/CodeGen/ARM/inlineasm4.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/inlineasm4.ll b/llvm/test/CodeGen/ARM/inlineasm4.ll
new file mode 100644
index 00000000000..9ed4b997a63
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/inlineasm4.ll
@@ -0,0 +1,17 @@
+; RUN: llc < %s -march=arm | FileCheck %s
+
+define double @f(double %x) {
+entry:
+ %0 = tail call double asm "mov ${0:R}, #4\0A", "=&r"()
+ ret double %0
+; CHECK: f:
+; CHECK: mov r1, #4
+}
+
+define double @g(double %x) {
+entry:
+ %0 = tail call double asm "mov ${0:Q}, #4\0A", "=&r"()
+ ret double %0
+; CHECK: g:
+; CHECK: mov r0, #4
+}
OpenPOWER on IntegriCloud