diff options
| author | Eric Astor <epastor@google.com> | 2019-12-22 00:09:37 -0500 |
|---|---|---|
| committer | Eric Astor <epastor@google.com> | 2019-12-22 09:16:34 -0500 |
| commit | dc5b614fa9a1c83e8275fcb9c3f78444d0a30514 (patch) | |
| tree | 38cc0f3cbaf41050d00d06e2f277fba322979f43 /clang/test/CodeGen/mozilla-ms-inline-asm.c | |
| parent | 0b38af89e2c0adc13a6efb1dd04485229ef0d1c6 (diff) | |
| download | bcm5719-llvm-dc5b614fa9a1c83e8275fcb9c3f78444d0a30514.tar.gz bcm5719-llvm-dc5b614fa9a1c83e8275fcb9c3f78444d0a30514.zip | |
[ms] [X86] Use "P" modifier on operands to call instructions in inline X86 assembly.
Summary:
This is documented as the appropriate template modifier for call operands.
Fixes PR44272, and adds a regression test.
Also adds support for operand modifiers in Intel-style inline assembly.
Reviewers: rnk
Reviewed By: rnk
Subscribers: merge_guards_bot, hiraditya, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D71677
Diffstat (limited to 'clang/test/CodeGen/mozilla-ms-inline-asm.c')
| -rw-r--r-- | clang/test/CodeGen/mozilla-ms-inline-asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/mozilla-ms-inline-asm.c b/clang/test/CodeGen/mozilla-ms-inline-asm.c index 0774c8cb304..210c7f2b9c8 100644 --- a/clang/test/CodeGen/mozilla-ms-inline-asm.c +++ b/clang/test/CodeGen/mozilla-ms-inline-asm.c @@ -27,7 +27,7 @@ void invoke(void* that, unsigned methodIndex, // CHECK-SAME: sub esp,eax // CHECK-SAME: mov ecx,esp // CHECK-SAME: push $0 -// CHECK-SAME: call dword ptr $2 +// CHECK-SAME: call dword ptr ${2:P} // CHECK-SAME: {{.*}}__MSASMLABEL_.${:uid}__noparams: // CHECK-SAME: mov ecx,$3 // CHECK-SAME: push ecx |

