[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / pcrel-global.s
blobeee51565ead9c739ec213696264b53c117451122
1 @ RUN: llvm-mc -filetype=obj -triple=armv7 %s -o %t
2 @ RUN: llvm-readelf -r %t | FileCheck %s
3 @ RUN: llvm-mc -filetype=obj -triple=armebv7 %s -o %t
4 @ RUN: llvm-readelf -r %t | FileCheck %s
6 @ CHECK: There are no relocations in this file.
7 .syntax unified
9 .globl foo
10 foo:
11 ldrd r0, r1, foo @ arm_pcrel_10_unscaled
12 vldr d0, foo @ arm_pcrel_10
13 adr r2, foo @ arm_adr_pcrel_12
14 ldr r0, foo @ arm_ldst_pcrel_12
16 .thumb
17 .thumb_func
19 .globl bar
20 bar:
21 adr r0, bar @ thumb_adr_pcrel_10
22 adr.w r0, bar @ t2_adr_pcrel_12
23 ldr.w pc, bar @ t2_ldst_pcrel_12