• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: llvm-mc -mcpu=cortex-a9 -triple armv7-arm-none-eabi -filetype obj -o - %s \
2@ RUN:   | llvm-objdump --mcpu=cortex-a9 --triple=armv7-arm-none-eabi -d - \
3@ RUN:   | FileCheck %s -check-prefix CHECK-ARM
4
5@ RUN: llvm-mc -mcpu=cortex-m3 -triple thumbv7m-arm-none-eabi -filetype obj -o - %s \
6@ RUN:   | llvm-objdump --mcpu=cortex-m3 --triple=thumbv7m-arm-none-eabi -d - \
7@ RUN:   | FileCheck %s -check-prefix CHECK-THUMB
8
9b.w .Lbranch
10@ CHECK-ARM: b #4 <$a.0+0xc>
11@ CHECK-THUMB: b.w #8 <$t.0+0xc>
12adds r0, r1, #42
13adds r1, r2, #42
14.Lbranch:
15movs r2, r3
16