1# RUN: llvm-mc -triple=x86_64 %s | FileCheck %s --check-prefix=ASM 2# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t 3# RUN: llvm-objdump --no-print-imm-hex -d -r %t | FileCheck %s --check-prefix=OBJ 4 5# RUN: not llvm-mc -filetype=obj -triple=x86_64 --defsym ERR=1 %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR 6 7# ASM: movabsq $puts@PLTOFF, %rax 8# OBJ: movabsq $0, %rax 9# OBJ-NEXT: 0000000000000002: R_X86_64_PLTOFF64 puts{{$}} 10 11movabsq $puts@PLTOFF, %rax 12 13.ifdef ERR 14# ERR: {{.*}}.s:[[#@LINE+1]]:1: error: 64 bit reloc applied to a field with a different size 15movl $puts@PLTOFF, %eax 16.endif 17