mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
295aeb9f05
This allows the register name to be printed without the leading '%'. This can be used for emitting calls to the retpoline thunks from inline asm. llvm-svn: 324645
15 lines
502 B
LLVM
15 lines
502 B
LLVM
; RUN: llc < %s -mtriple=i686-- -no-integrated-as | FileCheck -check-prefix=X86 %s
|
|
; RUN: llc < %s -mtriple=x86_64-- -no-integrated-as | FileCheck -check-prefix=X64 %s
|
|
|
|
; If the target does not have 64-bit integer registers, emit 32-bit register
|
|
; names.
|
|
|
|
; X86: call __x86_indirect_thunk_e{{[abcd]}}x
|
|
; X64: call __x86_indirect_thunk_r
|
|
|
|
define void @q_modifier(i32* %p) {
|
|
entry:
|
|
tail call void asm sideeffect "call __x86_indirect_thunk_${0:V}", "r,~{dirflag},~{fpsr},~{flags}"(i32* %p)
|
|
ret void
|
|
}
|