33 lines · plain
1# RUN: llvm-mc -filetype=obj -defsym=I=6 -triple i686-unknown-unknown %s | llvm-objdump --triple=i686-unknown-unknown -s - | FileCheck --check-prefix="CHECK" %s2# RUN: not llvm-mc -filetype=obj -defsym=I=4 -triple i686-unknown-unknown %s -o /dev/null 2>&1 | FileCheck --check-prefix="CHECK-ERR" %s3 4 5 6# CHECK: Contents of section .text7# CHECK-NEXT: 0000 e9810000 00cc9090 90909090 909090908 9# Make sure we emit in correct endianness.10 11# CHECK: Contents of section .data12# CHECK-NEXT: 0000 78563412 78563412 7856341213 14.text15foo:16jmp bar217# CHECK-ERR: [[@LINE+1]]:7: error: invalid number of bytes18.fill ((I+foo) - .), 1, 0xcc19bar:20 .space 128, 0x9021bar2:22.byte 0xff23 24# This fill length is not known at assembler time.25 26.if (I==6)27 28.data29.long 0x1234567830.fill ((foo+8)-bar), 4, 0x1234567831 32.endif33