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