diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-10 16:26:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-08-10 16:26:42 +0000 |
commit | f5ade5d39abe5cb12a8202c604321d5992e4a168 (patch) | |
tree | edfa616f08206a14f9ccd8b6adb461b9d6afd0fc /test/CodeGen/ARM | |
parent | 21ab6c066d3ca953409916f0a78d1c022a665d29 (diff) | |
download | external_llvm-f5ade5d39abe5cb12a8202c604321d5992e4a168.zip external_llvm-f5ade5d39abe5cb12a8202c604321d5992e4a168.tar.gz external_llvm-f5ade5d39abe5cb12a8202c604321d5992e4a168.tar.bz2 |
Add support for the R and Q constraints.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r-- | test/CodeGen/ARM/inlineasm4.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/inlineasm4.ll b/test/CodeGen/ARM/inlineasm4.ll new file mode 100644 index 0000000..9ed4b99 --- /dev/null +++ b/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 +} |