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/ms-inline-asm.cpp | |
| 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/ms-inline-asm.cpp')
| -rw-r--r-- | clang/test/CodeGen/ms-inline-asm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.cpp b/clang/test/CodeGen/ms-inline-asm.cpp index 039cde9e10e..58796ed6378 100644 --- a/clang/test/CodeGen/ms-inline-asm.cpp +++ b/clang/test/CodeGen/ms-inline-asm.cpp @@ -109,7 +109,7 @@ void test5() { __asm mov x, eax // CHECK: call void asm sideeffect inteldialect // CHECK-SAME: push $0 - // CHECK-SAME: call dword ptr $2 + // CHECK-SAME: call dword ptr ${2:P} // CHECK-SAME: mov $1, eax // CHECK-SAME: "=*m,=*m,*m,~{esp},~{dirflag},~{fpsr},~{flags}"(i32* %y, i32* %x, i32 (float)* @_ZN2T5IiE6createIfEEiT_) } |

