diff options
| author | James Molloy <james.molloy@arm.com> | 2015-10-26 10:04:52 +0000 |
|---|---|---|
| committer | James Molloy <james.molloy@arm.com> | 2015-10-26 10:04:52 +0000 |
| commit | 72222f5dcafbf19905908197793732fe07458595 (patch) | |
| tree | 2dcce747db3d91caf60392700db107c6a56f4d51 /llvm/test/CodeGen | |
| parent | 94bbbc29bd8e8a48e43fafec302da89fc7f46192 (diff) | |
| download | bcm5719-llvm-72222f5dcafbf19905908197793732fe07458595.tar.gz bcm5719-llvm-72222f5dcafbf19905908197793732fe07458595.zip | |
[ARM] Handle the inline asm constraint type 'o'
This means "memory with offset" and requires very little plumbing to get working. This fixes PR25317.
llvm-svn: 251280
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/ARM/pr25317.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/pr25317.ll b/llvm/test/CodeGen/ARM/pr25317.ll new file mode 100644 index 00000000000..6770c6f84ec --- /dev/null +++ b/llvm/test/CodeGen/ARM/pr25317.ll @@ -0,0 +1,11 @@ +; RUN: llc < %s | FileCheck %s + +target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" +target triple = "armv7--linux-gnueabihf" + +; CHECK-LABEL: f: +; CHECK: str lr, [r0] +define void @f(i32* %p) { + call void asm sideeffect "str lr, $0", "=*o"(i32* %p) + ret void +}
\ No newline at end of file |

