[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / branch-disassemble.s
blobc6cb4ffa5edc99894830816db3e89bf61da0329d
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
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
9 b.w .Lbranch
10 @ CHECK-ARM: b 0xc <$a.0+0xc> @ imm = #4
11 @ CHECK-THUMB: b.w 0xc <$t.0+0xc> @ imm = #8
12 adds r0, r1, #42
13 adds r1, r2, #42
14 .Lbranch:
15 movs r2, r3