1 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -mcpu=cortex-m0 -verify-machineinstrs | FileCheck --check-prefix CHECK-T1 %s 2 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -mcpu=cortex-m3 -verify-machineinstrs | FileCheck --check-prefix CHECK-T2 %s 3 4 ; CHECK-T1-LABEL: @mov_and_add 5 ; CHECK-T2-LABEL: @mov_and_add 6 ; CHECK-T1: movs r0, #255 7 ; CHECK-T1: adds r0, #12 8 ; CHECK-T2: movw r0, #267 9 define i32 @mov_and_add() { 10 ret i32 267 11 } 12 13 ; CHECK-T1-LABEL: @mov_and_add2 14 ; CHECK-T2-LABEL: @mov_and_add2 15 ; CHECK-T1: ldr r0, 16 ; CHECK-T2: movw r0, #511 17 define i32 @mov_and_add2() { 18 ret i32 511 19 } 20