[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / thumb2-b.w-target.s
blob7ae1a3beaac3c17878b439c0d8565381beab7ef2
1 // RUN: llvm-mc -triple=thumbv7 -filetype=obj %s | llvm-objdump --triple=thumbv7 -d - | FileCheck %s
3 .syntax unified
5 // CHECK-LABEL: start
6 // CHECK-NEXT: b.w {{.+}} @ imm = #16777208
7 // CHECK-NEXT: b.w {{.+}} @ imm = #2
8 start:
9 b.w start - 1f + 0x1000000
11 b.w . + (2f - 1b + 2)