1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs < %s | FileCheck %s
4 define i32 @subs(i32 %a, i32 %b) {
6 ; CHECK: @ %bb.0: @ %entry
7 ; CHECK-NEXT: subs r0, r0, r1
8 ; CHECK-NEXT: beq .LBB0_2
9 ; CHECK-NEXT: @ %bb.1: @ %false
10 ; CHECK-NEXT: movs r0, #5
12 ; CHECK-NEXT: .LBB0_2: @ %true
13 ; CHECK-NEXT: movs r0, #4
17 %d = icmp eq i32 %c, 0
18 br i1 %d, label %true, label %false
27 define i32 @addsrr(i32 %a, i32 %b) {
28 ; CHECK-LABEL: addsrr:
29 ; CHECK: @ %bb.0: @ %entry
30 ; CHECK-NEXT: adds r0, r0, r1
31 ; CHECK-NEXT: beq .LBB1_2
32 ; CHECK-NEXT: @ %bb.1: @ %false
33 ; CHECK-NEXT: movs r0, #5
35 ; CHECK-NEXT: .LBB1_2: @ %true
36 ; CHECK-NEXT: movs r0, #4
40 %d = icmp eq i32 %c, 0
41 br i1 %d, label %true, label %false
50 define i32 @lslri(i32 %a, i32 %b) {
52 ; CHECK: @ %bb.0: @ %entry
53 ; CHECK-NEXT: lsls r0, r0, #3
54 ; CHECK-NEXT: beq .LBB2_2
55 ; CHECK-NEXT: @ %bb.1: @ %false
56 ; CHECK-NEXT: movs r0, #5
58 ; CHECK-NEXT: .LBB2_2: @ %true
59 ; CHECK-NEXT: movs r0, #4
63 %d = icmp eq i32 %c, 0
64 br i1 %d, label %true, label %false
73 define i32 @lslrr(i32 %a, i32 %b) {
75 ; CHECK: @ %bb.0: @ %entry
76 ; CHECK-NEXT: lsls r0, r1
77 ; CHECK-NEXT: beq .LBB3_2
78 ; CHECK-NEXT: @ %bb.1: @ %false
79 ; CHECK-NEXT: movs r0, #5
81 ; CHECK-NEXT: .LBB3_2: @ %true
82 ; CHECK-NEXT: movs r0, #4
86 %d = icmp eq i32 %c, 0
87 br i1 %d, label %true, label %false