55 lines · plain
1; RUN: llc < %s -mtriple=arm64-linux-gnu | FileCheck %s -check-prefixes=NOTCPU-LINUX --match-full-lines2; RUN: llc < %s -mtriple=arm64-apple-macosx -mcpu=generic | FileCheck %s -check-prefixes=NOTCPU-APPLE --match-full-lines3; RUN: llc < %s -mtriple=arm64-apple-macosx -mcpu=apple-m1 | FileCheck %s -check-prefixes=CPU --match-full-lines4; RUN: llc < %s -mtriple=arm64-apple-macosx -mcpu=apple-m1 -mattr=-zcm-gpr64 | FileCheck %s -check-prefixes=NOTATTR --match-full-lines5; RUN: llc < %s -mtriple=arm64-apple-macosx -mattr=+zcm-gpr64 | FileCheck %s -check-prefixes=ATTR --match-full-lines6 7define void @zero_cycle_regmove_GPR32(i32 %a, i32 %b, i32 %c, i32 %d) {8entry:9; CHECK-LABEL: t:10; NOTCPU-LINUX: mov w0, w211; NOTCPU-LINUX: mov w1, w312; NOTCPU-LINUX: mov [[REG2:w[0-9]+]], w313; NOTCPU-LINUX: mov [[REG1:w[0-9]+]], w214; NOTCPU-LINUX-NEXT: bl {{_?foo_i32}}15; NOTCPU-LINUX: mov w0, [[REG1]]16; NOTCPU-LINUX: mov w1, [[REG2]]17 18; NOTCPU-APPLE: mov w0, w219; NOTCPU-APPLE: mov w1, w320; NOTCPU-APPLE: mov [[REG2:w[0-9]+]], w321; NOTCPU-APPLE: mov [[REG1:w[0-9]+]], w222; NOTCPU-APPLE-NEXT: bl {{_?foo_i32}}23; NOTCPU-APPLE: mov w0, [[REG1]]24; NOTCPU-APPLE: mov w1, [[REG2]]25 26; CPU: mov [[REG2:x[0-9]+]], x327; CPU: mov [[REG1:x[0-9]+]], x228; CPU: mov x0, x229; CPU: mov x1, x330; CPU-NEXT: bl {{_?foo_i32}}31; CPU: mov x0, [[REG1]]32; CPU: mov x1, [[REG2]]33 34; NOTATTR: mov [[REG2:w[0-9]+]], w335; NOTATTR: mov [[REG1:w[0-9]+]], w236; NOTATTR: mov w0, w237; NOTATTR: mov w1, w338; NOTATTR-NEXT: bl {{_?foo_i32}}39; NOTATTR: mov w0, [[REG1]]40; NOTATTR: mov w1, [[REG2]]41 42; ATTR: mov x0, x243; ATTR: mov x1, x344; ATTR: mov [[REG2:x[0-9]+]], x345; ATTR: mov [[REG1:x[0-9]+]], x246; ATTR-NEXT: bl {{_?foo_i32}}47; ATTR: mov x0, [[REG1]]48; ATTR: mov x1, [[REG2]]49 %call = call i32 @foo_i32(i32 %c, i32 %d)50 %call1 = call i32 @foo_i32(i32 %c, i32 %d)51 unreachable52}53 54declare i32 @foo_i32(i32, i32)55