51 lines · plain
1// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -s - | FileCheck %s2// RUN: not llvm-mc -filetype=obj -triple x86_64 --defsym ERR=1 %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR --implicit-check-not=error:3 4// CHECK: Contents of section .text:5// CHECK-NEXT: 0000 03042502 00000003 04250100 0000ebf76.text 17add 1, %eax8jmp label9.subsection10add 2, %eax11label:12 13// CHECK-NOT: Contents of section .rela.text:14 15// CHECK: Contents of section .data:16// CHECK-NEXT: 0000 01030402 7465737417.data18l0:19.byte 120.subsection 1+121l1:22.byte 223l2:24.subsection l2-l125.byte l1-l026.subsection 327.ascii "test"28.previous29.byte 430 31// CHECK: Contents of section test:32// CHECK-NEXT: 0000 01030233.section test34.byte 135.pushsection test, 136.byte 237.popsection38.byte 339 40 41.ifdef ERR42// ERR: :[[#@LINE+1]]:13: error: cannot evaluate subsection number43.subsection l244 45// ERR: <unknown>:0: error: subsection number -1 is not within [0,2147483647]46.subsection 0-147.subsection 214748364748// ERR: <unknown>:0: error: subsection number 2147483648 is not within [0,2147483647]49.subsection 214748364850.endif51