mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
8619fd0740
The MachineVerifier wants to check that the register operands of an instruction belong to the instruction's register class. RIP-relative control flow instructions violated this by referencing RIP. While this was fixed for SysV, it was never fixed for Win64. llvm-svn: 254315
17 lines
336 B
LLVM
17 lines
336 B
LLVM
; RUN: llc < %s -verify-coalescing | FileCheck %s
|
|
target triple = "x86_64-pc-win32"
|
|
|
|
@fnptr = external global void ()*
|
|
|
|
define void @test1() {
|
|
entry:
|
|
%p = load void ()*, void ()** @fnptr
|
|
tail call void %p()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: test1{{$}}
|
|
; CHECK: .seh_proc test1{{$}}
|
|
; CHECK: rex64 jmpq *fnptr(%rip)
|
|
; CHECK: .seh_endproc
|