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 4# CHECK: TEST0: 5# CHECK: .byte 10 6TEST0: 7 .fill 1, 1, 10 8 9# CHECK: TEST1: 10# CHECK: .short 3 11# CHECK: .short 3 12TEST1: 13 .fill 2, 2, 3 14 15# CHECK: TEST2: 16# CHECK: .long 4 17# CHECK: .long 0 18TEST2: 19 .fill 1, 8, 4 20 21# CHECK: TEST3 22# CHECK: .byte 0 23# CHECK: .byte 0 24# CHECK: .byte 0 25# CHECK: .byte 0 26TEST3: 27 .fill 4 28 29# CHECK: TEST4 30# CHECK: .short 0 31# CHECK: .short 0 32# CHECK: .short 0 33# CHECK: .short 0 34TEST4: 35 .fill 4, 2 36 37# CHECK: TEST5 38# CHECK: .short 2 39# CHECK: .byte 0 40# CHECK: .short 2 41# CHECK: .byte 0 42# CHECK: .short 2 43# CHECK: .byte 0 44# CHECK: .short 2 45# CHECK: .byte 0 46TEST5: 47 .fill 4, 3, 2 48 49# CHECK: TEST6 50# CHECK: .long 2 51# CHECK: .long 0 52# CHECK-WARNINGS: '.fill' directive with size greater than 8 has been truncated to 8 53TEST6: 54 .fill 1, 9, 2 55 56# CHECK: TEST7 57# CHECK: .long 0 58# CHECK: .long 0 59# CHECK-WARNINGS: '.fill' directive pattern has been truncated to 32-bits 60TEST7: 61 .fill 1, 8, 1<<32 62 63# CHECK-WARNINGS: '.fill' directive with negative repeat count has no effect 64TEST8: 65 .fill -1, 8, 1 66 67# CHECK-WARNINGS: '.fill' directive with negative size has no effect 68TEST9: 69 .fill 1, -1, 1 70 71# CHECK: TEST10 72# CHECK: .short 22136 73# CHECK: .byte 52 74TEST10: 75 .fill 1, 3, 0x12345678 76