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
7 target datalayout = "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128"
10 %struct.B = type { ptr }
12 $"??_9B@@$BA@AA" = comdat any
14 ; Function Attrs: noinline optnone
15 define linkonce_odr void @"??_9B@@$BA@AA"(ptr %this, ...) #1 comdat align 2 {
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, ...)
29 attributes #1 = { noinline optnone "thunk" }
31 ; CHECK: mov v16.16b, v0.16b
34 ; CHECK: mov v0.16b, v16.16b
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