1 // RUN
: llvm-mc
-triple aarch64-unknown-windows-msvc
-filetype obj
%s
-o
- | llvm-objdump
-D
-r
- | FileCheck
%s
2 // RUN
: not llvm-mc
-triple aarch64-unknown-windows-msvc
-filetype obj
--defsym ERR
=1 %s
-o
/dev
/null
2>&1 | FileCheck
%s
--check-prefix
=ERR
10 // A privte label target in the same section
19 // A privte label target in another section
37 // Check that both branches have
a relocation with
a zero offset.
39 // CHECK
: 0000000000000000 <main
>:
40 // CHECK
: 0: d503201f
nop
41 // CHECK
: 4: 14000000 b 0x4 <main+
0x4>
42 // CHECK
: 0000000000000004: IMAGE_REL_ARM64_BRANCH26
.Ltarget
43 // CHECK
: 8: 14000000 b 0x8 <main+
0x8>
44 // CHECK
: 0000000000000008: IMAGE_REL_ARM64_BRANCH26
.Lother_target
45 // CHECK
: 000000000000000c
<.Ltarget>:
46 // CHECK
: c
: d65f03c0 ret
47 // CHECK
: 0000000000000000 <other
>:
48 // CHECK
: 0: d503201f
nop
49 // CHECK
: 4: d503201f
nop
50 // CHECK
: 8: d503201f
nop
51 // CHECK
: c
: d503201f
nop
52 // CHECK
: 10: d503201f
nop
53 // CHECK
: 14: d503201f
nop
54 // CHECK
: 18: d503201f
nop
55 // CHECK
: 1c
: d503201f
nop
56 // CHECK
: 0000000000000020 <.Lother_target>:
57 // CHECK
: 20: d65f03c0 ret
64 // ERR
: [[#@LINE-1]]:5: error: cannot perform a PC-relative fixup with a non-zero symbol offset