1 # RUN: llvm-mc -triple i386-unknown-unknown %s 2> %t.err | FileCheck %s
2 # RUN: FileCheck --check-prefix=CHECK-WARNINGS %s < %t.err
3 # RUN: not llvm-mc -triple i386-unknown-unknown -filetype=obj -o %t.o %s 2> %t.err2
4 # RUN: FileCheck --check-prefix=OBJ-ERRS %s < %t.err2
7 # CHECK: .fill 1, 1, 0xa
12 # CHECK: .fill 2, 2, 0x3
17 # CHECK: .fill 1, 8, 0x4
32 # CHECK: .fill 4, 3, 0x2
37 # CHECK: .fill 1, 8, 0x2
38 # CHECK-WARNINGS: '.fill' directive with size greater than 8 has been truncated to 8
43 # CHECK: .fill 1, 8, 0x0
44 # CHECK-WARNINGS: '.fill' directive pattern has been truncated to 32-bits
49 # CHECK: .fill -1, 8, 0x1
50 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
54 # CHECK-WARNINGS: '.fill' directive with negative size has no effect
59 # CHECK: .fill 1, 3, 0x12345678
61 .fill 1, 3, 0x12345678
64 # CHECK: .fill TEST11-TEST10, 1, 0x0
69 # CHECK: .fill TEST11-TEST12, 4, 0x12345678
70 # OBJ-ERRS: '.fill' directive with negative repeat count has no effect
72 .fill TEST11 - TEST12, 4, 0x12345678
75 # CHECK: .fill (TEST11-TEST12)+i, 4, 0x12345678
76 # OBJ-ERRS: [[@LINE+2]]:8: error: expected assembly-time absolute expression
78 .fill TEST11 - TEST12+i, 4, 0x12345678