diff options
author | Eric Christopher <echristo@apple.com> | 2011-06-30 23:23:01 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-06-30 23:23:01 +0000 |
commit | 73744df0c467895bac9e25d5c62f34a0a8fcc4f9 (patch) | |
tree | b5809de3f1c4490adc633974fe03ddb4a4e3230a /test/CodeGen/Thumb/inlineasm-thumb.ll | |
parent | 5cd2791513919ee7504c309151321e4e37a05a58 (diff) | |
download | external_llvm-73744df0c467895bac9e25d5c62f34a0a8fcc4f9.zip external_llvm-73744df0c467895bac9e25d5c62f34a0a8fcc4f9.tar.gz external_llvm-73744df0c467895bac9e25d5c62f34a0a8fcc4f9.tar.bz2 |
Add support for the 'h' constraint.
Part of rdar://9119939
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb/inlineasm-thumb.ll')
-rw-r--r-- | test/CodeGen/Thumb/inlineasm-thumb.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb/inlineasm-thumb.ll b/test/CodeGen/Thumb/inlineasm-thumb.ll new file mode 100644 index 0000000..f2683c8 --- /dev/null +++ b/test/CodeGen/Thumb/inlineasm-thumb.ll @@ -0,0 +1,7 @@ +; RUN: llc < %s -march=thumb | FileCheck %s +define i32 @t1(i32 %x, i32 %y) nounwind { +entry: + ; CHECK: mov r0, r12 + %0 = tail call i32 asm "mov $0, $1", "=l,h"(i32 %y) nounwind + ret i32 %0 +} |