
... matching what we have in the disassembler. This isn't turned on by default since several of the scheduling models are not completely accurate, and we don't want to be misleading.
17 lines
776 B
LLVM
17 lines
776 B
LLVM
; RUN: llc -mtriple=thumb-none-eabi %s -o - -mcpu=cortex-m0 -asm-print-latency=1 | FileCheck %s --match-full-lines --check-prefix=ON
|
|
; RUN: llc -mtriple=thumb-none-eabi %s -o - -mcpu=cortex-m0 -asm-print-latency=0 | FileCheck %s --match-full-lines --check-prefix=OFF
|
|
; RUN: llc -mtriple=thumb-none-eabi %s -o - -mcpu=cortex-m0 | FileCheck %s --match-full-lines --check-prefix=OFF
|
|
|
|
define i64 @load_i64(ptr %ptr){
|
|
; ON: ldr r2, [r0] @ Latency: 4
|
|
; ON: ldr r1, [r0, #4] @ Latency: 4
|
|
; ON: mov r0, r2 @ Latency: 2
|
|
; ON: bx lr
|
|
; OFF: ldr r2, [r0]
|
|
; OFF: ldr r1, [r0, #4]
|
|
; OFF: mov r0, r2
|
|
; OFf: bx lr
|
|
%a = load i64, ptr %ptr
|
|
ret i64 %a
|
|
}
|