1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs < %s | FileCheck --check-prefix=T1 %s
3 ; RUN: llc -mtriple=thumbv7m-eabi -verify-machineinstrs < %s | FileCheck --check-prefix=T2 %s
5 define i32 @addri1(i32 %a, i32 %b) {
7 ; T1: @ %bb.0: @ %entry
8 ; T1-NEXT: adds r0, r0, #3
10 ; T1-NEXT: @ %bb.1: @ %false
11 ; T1-NEXT: movs r0, #5
13 ; T1-NEXT: .LBB0_2: @ %true
14 ; T1-NEXT: movs r0, #4
18 ; T2: @ %bb.0: @ %entry
19 ; T2-NEXT: adds r0, #3
20 ; T2-NEXT: mov.w r0, #5
22 ; T2-NEXT: moveq r0, #4
26 %d = icmp eq i32 %c, 0
27 br i1 %d, label %true, label %false
36 define i32 @addri2(i32 %a, i32 %b) {
38 ; T1: @ %bb.0: @ %entry
39 ; T1-NEXT: adds r0, #254
40 ; T1-NEXT: beq .LBB1_2
41 ; T1-NEXT: @ %bb.1: @ %false
42 ; T1-NEXT: movs r0, #5
44 ; T1-NEXT: .LBB1_2: @ %true
45 ; T1-NEXT: movs r0, #4
49 ; T2: @ %bb.0: @ %entry
50 ; T2-NEXT: adds r0, #254
51 ; T2-NEXT: mov.w r0, #5
53 ; T2-NEXT: moveq r0, #4
57 %d = icmp eq i32 %c, 0
58 br i1 %d, label %true, label %false