mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 05:23:45 +02:00
12 lines
432 B
LLVM
12 lines
432 B
LLVM
|
; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -mcpu=cortex-m0 -verify-machineinstrs | FileCheck --check-prefix CHECK-T1 %s
|
||
|
; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi -mcpu=cortex-m3 -verify-machineinstrs | FileCheck --check-prefix CHECK-T2 %s
|
||
|
|
||
|
; CHECK-T1-LABEL: @mov_and_add
|
||
|
; CHECK-T2-LABEL: @mov_and_add
|
||
|
; CHECK-T1: movs r0, #255
|
||
|
; CHECK-T1: adds r0, #12
|
||
|
; CHECK-T2: movw r0, #267
|
||
|
define i32 @mov_and_add() {
|
||
|
ret i32 267
|
||
|
}
|