1// RUN: not llvm-mc -triple aarch64-none-linux-gnu_ilp32 \ 2// RUN: < %s 2> %t2 -filetype=obj >/dev/null 3// RUN: FileCheck --check-prefix=ERROR %s --implicit-check-not=error: < %t2 4 5.xword sym-. 6// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte PC relative data relocation not supported (LP64 eqv: PREL64) 7 8.xword sym+16 9// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: ABS64) 10 11.xword sym@AUTH(da,42) 12// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64) 13 14.xword sym@AUTH(da,42,addr) 15// ERROR: [[#@LINE-1]]:8: error: ILP32 8 byte absolute data relocation not supported (LP64 eqv: AUTH_ABS64) 16 17movz x7, #:abs_g3:some_label 18// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G3) 19// ERROR: movz x7, #:abs_g3:some_label 20 21movz x3, #:abs_g2:some_label 22// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2) 23// ERROR: movz x3, #:abs_g2:some_label 24 25movz x19, #:abs_g2_s:some_label 26// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G2) 27// ERROR: movz x19, #:abs_g2_s:some_label 28 29movk x5, #:abs_g2_nc:some_label 30// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G2_NC) 31// ERROR: movk x5, #:abs_g2_nc:some_label 32 33movz x19, #:abs_g1_s:some_label 34// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_SABS_G1) 35// ERROR: movz x19, #:abs_g1_s:some_label 36 37movk x5, #:abs_g1_nc:some_label 38// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: MOVW_UABS_G1_NC) 39// ERROR: movk x5, #:abs_g1_nc:some_label 40 41movz x3, #:dtprel_g2:var 42// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G2) 43// ERROR: movz x3, #:dtprel_g2:var 44 45movk x9, #:dtprel_g1_nc:var 46// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLD_MOVW_DTPREL_G1_NC) 47// ERROR: movk x9, #:dtprel_g1_nc:var 48 49movz x3, #:tprel_g2:var 50// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G2) 51// ERROR: movz x3, #:tprel_g2:var 52 53movk x9, #:tprel_g1_nc:var 54// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSLE_MOVW_TPREL_G1_NC) 55// ERROR: movk x9, #:tprel_g1_nc:var 56 57movz x15, #:gottprel_g1:var 58// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G1) 59// ERROR: movz x15, #:gottprel_g1:var 60 61movk x13, #:gottprel_g0_nc:var 62// ERROR: [[#@LINE-1]]:1: error: ILP32 absolute MOV relocation not supported (LP64 eqv: TLSIE_MOVW_GOTTPREL_G0_NC) 63// ERROR: movk x13, #:gottprel_g0_nc:var 64 65ldr x10, [x0, #:gottprel_lo12:var] 66// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC) 67// ERROR: ldr x10, [x0, #:gottprel_lo12:var] 68 69ldr x24, [x23, #:got_lo12:sym] 70// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC) 71 72ldr x24, [x23, #:got_auth_lo12:sym] 73// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: AUTH_GOT_LO12_NC) 74 75add x24, x23, #:got_auth_lo12:sym 76// ERROR: [[#@LINE-1]]:1: error: ILP32 ADD AUTH relocation not supported (LP64 eqv: AUTH_GOT_ADD_LO12_NC) 77 78ldr x24, [x23, :gottprel_lo12:sym] 79// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC) 80 81ldr x10, [x0, #:gottprel_lo12:var] 82// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC) 83// ERROR: ldr x10, [x0, #:gottprel_lo12:var] 84 85ldr x24, [x23, #:got_lo12:sym] 86// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: LD64_GOT_LO12_NC) 87 88ldr x24, [x23, :gottprel_lo12:sym] 89// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store relocation not supported (LP64 eqv: TLSIE_LD64_GOTTPREL_LO12_NC) 90 91ldr x24, :got_auth:sym 92// ERROR: [[#@LINE-1]]:1: error: ILP32 LDR AUTH relocation not supported (LP64 eqv: AUTH_GOT_LD_PREL19) 93 94adr x24, :got_auth:sym 95// ERROR: [[#@LINE-1]]:1: error: ILP32 ADR AUTH relocation not supported (LP64 eqv: AUTH_GOT_ADR_PREL_LO21) 96 97adrp x24, :tlsdesc_auth:sym 98// ERROR: [[#@LINE-1]]:1: error: ILP32 ADRP AUTH relocation not supported (LP64 eqv: AUTH_TLSDESC_ADR_PAGE21) 99 100ldr x24, [x23, :tlsdesc_auth_lo12:sym] 101// ERROR: [[#@LINE-1]]:1: error: ILP32 64-bit load/store AUTH relocation not supported (LP64 eqv: AUTH_TLSDESC_LD64_LO12) 102 103add x24, x23, :tlsdesc_auth_lo12:sym 104// ERROR: [[#@LINE-1]]:1: error: ILP32 ADD AUTH relocation not supported (LP64 eqv: AUTH_TLSDESC_ADD_LO12) 105