diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-31 16:58:05 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-31 16:58:05 +0000 |
| commit | 35e42db3ed49d72ab63cb0f97ed2c416de7f3afc (patch) | |
| tree | 1a46c76588afdc0af9269483344376bae297aad1 /llvm/test | |
| parent | 79e8ebada2c35542ec0c980b853965805c89d775 (diff) | |
| download | bcm5719-llvm-35e42db3ed49d72ab63cb0f97ed2c416de7f3afc.tar.gz bcm5719-llvm-35e42db3ed49d72ab63cb0f97ed2c416de7f3afc.zip | |
Add a test for the recent compiler-rt build failure.
llvm-svn: 225046
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s b/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s index 8c78d6d94a3..07d52528e91 100644 --- a/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s +++ b/llvm/test/MC/MachO/AArch64/darwin-ARM64-reloc.s @@ -15,6 +15,7 @@ _fred: adrp x3, _data_ext@gotpage ldr w2, [x3, _data_ext@gotpageoff] + adrp x0, L_.str@PAGE .data _data: @@ -28,10 +29,23 @@ _data: .quad _foo@got .long _foo@got - . + .section __TEXT,__cstring,cstring_literals +L_.str: + .asciz "foo" + ; CHECK: Relocations [ ; CHECK-NEXT: Section __text { ; CHECK-NEXT: Relocation { +; CHECK-NEXT: Offset: 0x24 +; CHECK-NEXT: PCRel: 1 +; CHECK-NEXT: Length: 2 +; CHECK-NEXT: Extern: 1 +; CHECK-NEXT: Type: ARM64_RELOC_PAGE21 (3) +; CHECK-NEXT: Symbol: L_.str +; CHECK-NEXT: Scattered: 0 +; CHECK-NEXT: } +; CHECK-NEXT: Relocation { ; CHECK-NEXT: Offset: 0x20 ; CHECK-NEXT: PCRel: 0 ; CHECK-NEXT: Length: 2 |

