mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
00e36b584c
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
19 lines
431 B
LLVM
19 lines
431 B
LLVM
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
|
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
|
|
|
|
define void @func() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define void @main() {
|
|
entry:
|
|
call void asm sideeffect inteldialect "call ${0:P}", "*m,~{dirflag},~{fpsr},~{flags}"(void ()* @func)
|
|
ret void
|
|
; CHECK-LABEL: main:
|
|
; CHECK: {{## InlineAsm Start|#APP}}
|
|
; CHECK: {{call(l|q) func$}}
|
|
; CHECK: {{## InlineAsm End|#NO_APP}}
|
|
; CHECK: ret{{l|q}}
|
|
}
|