24 lines · plain
1; RUN: llc -mtriple=arm64-apple-macosx %s -o - | FileCheck %s --check-prefix=CHECK-DARWIN2; RUN: llc -mtriple=arm64-apple-macosx %s -o - -global-isel | FileCheck %s --check-prefix=CHECK-DARWIN3; RUN: llc -mtriple=aarch64-linux-gnu %s -o - | FileCheck %s --check-prefix=CHECK-LINWIN4; RUN: llc -mtriple=aarch64-linux-gnu %s -o - -global-isel | FileCheck %s --check-prefix=CHECK-LINWIN5; RUN: llc -mtriple=aarch64-windows-msvc %s -o - | FileCheck %s --check-prefix=CHECK-LINWIN6; RUN: llc -mtriple=aarch64-windows-msvc %s -o - -global-isel | FileCheck %s --check-prefix=CHECK-LINWIN7 8declare i16 @foo([8 x i64], i16 signext, i16 signext %a, ...)9 10define void @bar() {11; CHECK-DARWIN-LABEL: bar:12; CHECK-LINWIN-LABEL: bar:13 14; CHECK-DARWIN: mov [[TMP:w[0-9]+]], #275251215; CHECK-DARWIN: str [[TMP]], [sp]16 17; CHECK-LINWIN: mov [[TMP:w[0-9]+]], #4218; CHECK-LINWIN: str{{h?}} wzr, [sp]19; CHECK-LINWIN: str{{h?}} [[TMP]], [sp, #8]20 21 call i16([8 x i64], i16, i16, ...) @foo([8 x i64] poison, i16 signext 0, i16 signext 42)22 ret void23}24