45 lines · plain
1; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s -check-prefixes=ALL,NOZCZ-GPR32-NOZCZ-GPR642; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+zcz-gpr32 | FileCheck %s -check-prefixes=ALL,ZCZ-GPR323; RUN: llc < %s -mtriple=aarch64-linux-gnu -mattr=+zcz-gpr64 | FileCheck %s -check-prefixes=ALL,NOZCZ-GPR32-ZCZ-GPR644; RUN: llc < %s -mtriple=arm64-apple-macosx -mcpu=generic | FileCheck %s -check-prefixes=ALL,NOZCZ-GPR32-NOZCZ-GPR645; RUN: llc < %s -mtriple=arm64-apple-ios -mcpu=cyclone | FileCheck %s -check-prefixes=ALL,ZCZ-GPR32,ZCZ-GPR646; RUN: llc < %s -mtriple=arm64-apple-macosx -mcpu=apple-m1 | FileCheck %s -check-prefixes=ALL,ZCZ-GPR32,ZCZ-GPR647; RUN: llc < %s -mtriple=aarch64-linux-gnu -mcpu=exynos-m3 | FileCheck %s -check-prefixes=ALL,NOZCZ-GPR32-NOZCZ-GPR648; RUN: llc < %s -mtriple=aarch64-linux-gnu -mcpu=kryo | FileCheck %s -check-prefixes=ALL,ZCZ-GPR32,ZCZ-GPR649; RUN: llc < %s -mtriple=aarch64-linux-gnu -mcpu=falkor | FileCheck %s -check-prefixes=ALL,ZCZ-GPR32,ZCZ-GPR6410 11define i8 @ti8() {12entry:13; ALL-LABEL: ti8:14; NOZCZ-GPR32-NOZCZ-GPR64: mov w0, wzr15; ZCZ-GPR32: mov w0, #016; NOZCZ-GPR32-ZCZ-GPR64: mov x0, #017 ret i8 018}19 20define i16 @ti16() {21entry:22; ALL-LABEL: ti16:23; NOZCZ-GPR32-NOZCZ-GPR64: mov w0, wzr24; ZCZ-GPR32: mov w0, #025; NOZCZ-GPR32-ZCZ-GPR64: mov x0, #026 ret i16 027}28 29define i32 @ti32() {30entry:31; ALL-LABEL: ti32:32; NOZCZ-GPR32-NOZCZ-GPR64: mov w0, wzr33; ZCZ-GPR32: mov w0, #034; NOZCZ-GPR32-ZCZ-GPR64: mov x0, #035 ret i32 036}37 38define i64 @ti64() {39entry:40; ALL-LABEL: ti64:41; NOZCZ-GPR32-NOZCZ-GPR64 mov x0, xzr42; ZCZ-GPR64: mov x0, #043 ret i64 044}45