brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 4dc0bc7 Raw
66 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs < %s | FileCheck --check-prefix=T1 %s3; RUN: llc -mtriple=thumbv7m-eabi -verify-machineinstrs < %s | FileCheck --check-prefix=T2 %s4 5define i32 @addri1(i32 %a, i32 %b) {6; T1-LABEL: addri1:7; T1:       @ %bb.0: @ %entry8; T1-NEXT:    adds r0, r0, #39; T1-NEXT:    beq .LBB0_210; T1-NEXT:  @ %bb.1: @ %false11; T1-NEXT:    movs r0, #512; T1-NEXT:    bx lr13; T1-NEXT:  .LBB0_2: @ %true14; T1-NEXT:    movs r0, #415; T1-NEXT:    bx lr16;17; T2-LABEL: addri1:18; T2:       @ %bb.0: @ %entry19; T2-NEXT:    adds r0, #320; T2-NEXT:    mov.w r0, #521; T2-NEXT:    it eq22; T2-NEXT:    moveq r0, #423; T2-NEXT:    bx lr24entry:25  %c = add i32 %a, 326  %d = icmp eq i32 %c, 027  br i1 %d, label %true, label %false28 29true:30  ret i32 431 32false:33  ret i32 534}35 36define i32 @addri2(i32 %a, i32 %b) {37; T1-LABEL: addri2:38; T1:       @ %bb.0: @ %entry39; T1-NEXT:    adds r0, #25440; T1-NEXT:    beq .LBB1_241; T1-NEXT:  @ %bb.1: @ %false42; T1-NEXT:    movs r0, #543; T1-NEXT:    bx lr44; T1-NEXT:  .LBB1_2: @ %true45; T1-NEXT:    movs r0, #446; T1-NEXT:    bx lr47;48; T2-LABEL: addri2:49; T2:       @ %bb.0: @ %entry50; T2-NEXT:    adds r0, #25451; T2-NEXT:    mov.w r0, #552; T2-NEXT:    it eq53; T2-NEXT:    moveq r0, #454; T2-NEXT:    bx lr55entry:56  %c = add i32 %a, 25457  %d = icmp eq i32 %c, 058  br i1 %d, label %true, label %false59 60true:61  ret i32 462 63false:64  ret i32 565}66