xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/coalescer-win64.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -verify-coalescing | FileCheck %s
2*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-pc-win32"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker@fnptr = external global void ()*
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine void @test1() {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  %p = load void ()*, void ()** @fnptr
9*9880d681SAndroid Build Coastguard Worker  tail call void %p()
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test1{{$}}
14*9880d681SAndroid Build Coastguard Worker; CHECK: .seh_proc test1{{$}}
15*9880d681SAndroid Build Coastguard Worker; CHECK: rex64 jmpq *fnptr(%rip)
16*9880d681SAndroid Build Coastguard Worker; CHECK: .seh_endproc
17