1; RUN: llc -mtriple=aarch64-windows-msvc %s -o - | FileCheck %s 2; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s 3; RUN: llc -global-isel -global-isel-abort=2 -verify-machineinstrs -mtriple=aarch64-windows-msvc %s -o - | FileCheck %s 4; RUN: llc -global-isel -global-isel-abort=2 -verify-machineinstrs -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s 5 6target datalayout = "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128" 7 8%class.X = type { i8 } 9%struct.B = type { i32 (...)** } 10 11$"??_9B@@$BA@AA" = comdat any 12 13; Function Attrs: noinline optnone 14define linkonce_odr void @"??_9B@@$BA@AA"(%struct.B* %this, ...) #1 comdat align 2 { 15entry: 16 %this.addr = alloca %struct.B*, align 8 17 store %struct.B* %this, %struct.B** %this.addr, align 8 18 %this1 = load %struct.B*, %struct.B** %this.addr, align 8 19 call void asm sideeffect "", "~{d0}"() 20 %0 = bitcast %struct.B* %this1 to void (%struct.B*, ...)*** 21 %vtable = load void (%struct.B*, ...)**, void (%struct.B*, ...)*** %0, align 8 22 %vfn = getelementptr inbounds void (%struct.B*, ...)*, void (%struct.B*, ...)** %vtable, i64 0 23 %1 = load void (%struct.B*, ...)*, void (%struct.B*, ...)** %vfn, align 8 24 musttail call void (%struct.B*, ...) %1(%struct.B* %this1, ...) 25 ret void 26 ; No predecessors! 27 ret void 28} 29 30attributes #1 = { noinline optnone "thunk" } 31 32; CHECK: mov v16.16b, v0.16b 33; CHECK: ldr x9, [x0] 34; CHECK: ldr x9, [x9] 35; CHECK: mov v0.16b, v16.16b 36; CHECK: br x9 37