1//RUN: not llvm-mc -triple=aarch64-linux -filetype=obj %s -o %t1 2> %t2
2//RUN: cat %t2 | FileCheck %s
3
4//These tests look for errors that should be reported for invalid object layout
5//with the ldr pseudo. They are tested separately from parse errors because they
6//only trigger when the file has successfully parsed and the object file is about
7//to be written out.
8
9.text
10foo:
11// CHECK: :[[@LINE+1]]:{{[0-9]+}}: error: fixup value out of range
12  ldr x0, =0x10111
13  .space 0xdeadb0
14