61 lines · plain
1# RUN: llc %s -run-pass machine-scheduler -o - | FileCheck %s2 3# CHECK-LABEL: bb.0.4# CHECK: t2LDRi125# CHECK-NEXT: t2LDRi126# CHECK-NEXT: t2ADDri7# CHECK-NEXT: t2ADDri8--- |9 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"10 target triple = "thumbv7em-arm-none-eabi"11 12 ; Function Attrs: norecurse nounwind optsize readonly13 define dso_local i32 @test(ptr nocapture readonly %a, ptr nocapture readonly %b) local_unnamed_addr #0 {14 entry:15 %0 = load i32, ptr %a, align 416 %add = add nsw i32 %0, 1017 %1 = load i32, ptr %b, align 418 %add1 = add nsw i32 %1, 2019 %mul = mul nsw i32 %add1, %add20 ret i32 %mul21 }22 23 attributes #0 = { "target-cpu"="cortex-m4" }24 25...26---27name: test28alignment: 229exposesReturnsTwice: false30legalized: false31regBankSelected: false32selected: false33failedISel: false34tracksRegLiveness: true35registers:36 - { id: 0, class: gpr, preferred-register: '' }37 - { id: 1, class: gpr, preferred-register: '' }38 - { id: 2, class: gprnopc, preferred-register: '' }39 - { id: 3, class: rgpr, preferred-register: '' }40 - { id: 4, class: gprnopc, preferred-register: '' }41 - { id: 5, class: rgpr, preferred-register: '' }42 - { id: 6, class: rgpr, preferred-register: '' }43liveins:44 - { reg: '$r0', virtual-reg: '%0' }45 - { reg: '$r1', virtual-reg: '%1' }46body: |47 bb.0.entry:48 liveins: $r0, $r149 50 %1:gpr = COPY $r151 %0:gpr = COPY $r052 %2:gprnopc = t2LDRi12 %0, 0, 14, $noreg :: (load (s32) from %ir.a)53 %3:rgpr = nsw t2ADDri %2, 10, 14, $noreg, $noreg54 %4:gprnopc = t2LDRi12 %1, 0, 14, $noreg :: (load (s32) from %ir.b)55 %5:rgpr = nsw t2ADDri %4, 20, 14, $noreg, $noreg56 %6:rgpr = nsw t2MUL %5, %3, 14, $noreg57 $r0 = COPY %658 tBX_RET 14, $noreg, implicit $r059 60...61