[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AsmParser / directive_incbin.s
blobbae3a2d15f2ba0ea008ce955ded6bbc235dd7559
1 # RUN: not llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s
2 # RUN: not llvm-mc -triple i386-unknown-unknown %s -I %p 2>&1 > /dev/null| FileCheck %s --check-prefix=CHECK-ERROR
4 .data
5 .incbin "incbin\137abcd" # "\137" is underscore "_"
7 # CHECK: .ascii "abcd\n"
9 .data
10 .incbin "incbin\137abcd", 1
12 # CHECK: .ascii "bcd\n"
14 .data
15 .incbin "incbin\137abcd", 1, 2
17 # CHECK: .ascii "bc"
19 .data
20 .incbin "incbin\137abcd",, 2
22 # CHECK: .ascii "ab"
24 .data
25 .incbin incbin\137abcd
27 # CHECK-ERROR: error: expected string in '.incbin' directive
29 .data
30 .incbin "incbin\137abcd" 1
32 # CHECK-ERROR: error: unexpected token in '.incbin' directive
34 .data
35 .incbin "incbin\137abcd", 1 2
37 # CHECK-ERROR: error: unexpected token in '.incbin' directive
39 .data
40 .incbin "incbin\137abcd", -1
42 # CHECK-ERROR: error: skip is negative
44 .data
45 .incbin "incbin\137abcd",, -1
47 # CHECK-ERROR: warning: negative count has no effect