diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-07 06:25:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-07 06:25:10 +0000 |
commit | 1d5a392e2cff41488e47e038231fb114ea0eb941 (patch) | |
tree | c7a2d52e64e5fa38b05017c4ae59a9a27d148446 /test | |
parent | 54412a789a35386e11612739dd3b30ab382e5127 (diff) | |
download | external_llvm-1d5a392e2cff41488e47e038231fb114ea0eb941.zip external_llvm-1d5a392e2cff41488e47e038231fb114ea0eb941.tar.gz external_llvm-1d5a392e2cff41488e47e038231fb114ea0eb941.tar.bz2 |
Add support for the 'c' constraint.
Patch by Jack Carter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll b/test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll index ac84d2a..aa186ec 100644 --- a/test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll +++ b/test/CodeGen/Mips/inlineasm-cnstrnt-reg.ll @@ -22,6 +22,12 @@ entry: ;CHECK: addi ${{[0-9]+}},${{[0-9]+}},3 ;CHECK: #NO_APP tail call i32 asm sideeffect "addi $0,$1,$2", "=r,r,n"(i32 7, i32 3) nounwind - + +; Now c with 1024: make sure register $25 is picked +; CHECK: #APP +; CHECK: addi $25,${{[0-9]+}},1024 +; CHECK: #NO_APP + tail call i32 asm sideeffect "addi $0,$1,$2", "=c,c,I"(i32 4194304, i32 1024) nounwind + ret i32 0 } |