1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=thumbv7m-none-eabi -run-pass=arm-cp-islands -verify-machineinstrs -o - %s | FileCheck %s
5 target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
6 target triple = "thumbv8.1m.main-arm-none-eabi"
8 @b = local_unnamed_addr global i32 0, align 4
18 tracksRegLiveness: true
20 ; CHECK-LABEL: name: c
22 ; CHECK: successors: %bb.2(0x40000000), %bb.1(0x40000000)
23 ; CHECK: renamable $r0, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
24 ; CHECK: tCBNZ killed renamable $r0, %bb.2
26 ; CHECK: successors: %bb.3(0x40000000), %bb.2(0x40000000)
27 ; CHECK: tCBZ undef renamable $r0, %bb.3
29 ; CHECK: successors: %bb.3(0x80000000)
30 ; CHECK: $r0 = t2MOVi16 target-flags(arm-lo16) @b, 14 /* CC::al */, $noreg
31 ; CHECK: $r0 = t2MOVTi16 killed $r0, target-flags(arm-hi16) @b, 14 /* CC::al */, $noreg
32 ; CHECK: renamable $r1 = tLDRi renamable $r0, 0, 14 /* CC::al */, $noreg :: (dereferenceable load (s32) from @b)
33 ; CHECK: renamable $r1, dead $cpsr = nsw tADDi8 killed renamable $r1, 1, 14 /* CC::al */, $noreg
34 ; CHECK: tSTRi killed renamable $r1, killed renamable $r0, 0, 14 /* CC::al */, $noreg :: (store (s32) into @b)
36 ; CHECK: tBX_RET 14 /* CC::al */, $noreg, implicit undef $r0
38 successors: %bb.2(0x40000000), %bb.1(0x40000000)
40 renamable $r0, dead $cpsr = tMOVi8 1, 14 /* CC::al */, $noreg
41 tCMPi8 killed renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
42 t2Bcc %bb.2, 1 /* CC::ne */, killed $cpsr
45 successors: %bb.3(0x40000000), %bb.2(0x40000000)
47 tCMPi8 undef renamable $r0, 0, 14 /* CC::al */, $noreg, implicit-def $cpsr
48 t2Bcc %bb.3, 0 /* CC::eq */, killed $cpsr
51 successors: %bb.3(0x80000000)
53 $r0 = t2MOVi16 target-flags(arm-lo16) @b, 14 /* CC::al */, $noreg
54 $r0 = t2MOVTi16 killed $r0, target-flags(arm-hi16) @b, 14 /* CC::al */, $noreg
55 renamable $r1 = tLDRi renamable $r0, 0, 14 /* CC::al */, $noreg :: (dereferenceable load (s32) from @b)
56 renamable $r1, dead $cpsr = nsw tADDi8 killed renamable $r1, 1, 14 /* CC::al */, $noreg
57 tSTRi killed renamable $r1, killed renamable $r0, 0, 14 /* CC::al */, $noreg :: (store (s32) into @b)
60 tBX_RET 14 /* CC::al */, $noreg, implicit undef $r0