1 # Check that LLD shows an error if ADDIUPC immediate is out of range.
3 # RUN: yaml2obj -format=elf %s > %t-obj
4 # RUN: lld -flavor gnu -target mipsel -o %t-exe %t-obj 2>&1 | FileCheck %s
6 # CHECK: The addiupc instruction immediate 0x02000008 is out of range
9 FileHeader: !FileHeader
14 Flags: [ EF_MIPS_CPIC, EF_MIPS_ABI_O32, EF_MIPS_ARCH_32R2,
20 Content: "0000000080780100"
21 # ^ PC23: 1 << 2 = 4 => T0 + 4 - 4 = T0
23 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
38 Type: R_MICROMIPS_PC23_S2
46 Other: [ STO_MIPS_MICROMIPS ]