xref: /llvm-project/llvm/test/CodeGen/AArch64/latency.ll (revision 4c3e1e3c4af1d215501a3b42655333a1167f0ab3)
1; RUN: llc -mtriple=arm64-apple-ios %s -o - -mcpu=cyclone -asm-print-latency=1 | FileCheck %s --match-full-lines --check-prefix=ON
2; RUN: llc -mtriple=arm64-apple-ios %s -o - -mcpu=cyclone -asm-print-latency=0 | FileCheck %s --match-full-lines --check-prefix=OFF
3; RUN: llc -mtriple=arm64-apple-ios %s -o - -mcpu=cyclone                      | FileCheck %s --match-full-lines --check-prefix=OFF
4
5define <4 x i64> @load_v4i64(ptr %ptr){
6; ON:     ldp q0, q1, [x0] ; Latency: 4
7; OFF:    ldp q0, q1, [x0]
8  %a = load <4 x i64>, ptr %ptr
9  ret <4 x i64> %a
10}
11