commit | f45daac30ff6265697ed43ba34b4dc66ca1e7e80 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Thu Jun 30 23:23:01 2011 +0000 |
committer | Eric Christopher <echristo@apple.com> | Thu Jun 30 23:23:01 2011 +0000 |
tree | 6af5502a423da418a6da40dd5f6646ff22e43a23 | |
parent | b403f0c4ed8c32acb36d99d7f7c9b70adaafea8b [diff] [blame] |
Add support for the 'h' constraint. Part of rdar://9119939 llvm-svn: 134203
diff --git a/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll b/llvm/test/CodeGen/Thumb/inlineasm-thumb.ll new file mode 100644 index 0000000..f2683c8 --- /dev/null +++ b/llvm/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 +}