diff options
author | Kevin Enderby <enderby@apple.com> | 2011-12-14 21:47:48 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2011-12-14 21:47:48 +0000 |
commit | c55accaddb472a517f697d4b0c44017f40c2a5a7 (patch) | |
tree | f518b22d687bcc7f5c75a677aad926567bc6f4b5 /test/MC | |
parent | 2dbab5c33db5eb08f909f5b9a036d75c9ac88a25 (diff) | |
download | external_llvm-c55accaddb472a517f697d4b0c44017f40c2a5a7.zip external_llvm-c55accaddb472a517f697d4b0c44017f40c2a5a7.tar.gz external_llvm-c55accaddb472a517f697d4b0c44017f40c2a5a7.tar.bz2 |
Add the .incbin directive which takes the binary data from a file and emits
it to the streamer. rdar://10383898
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/directive_incbin.s | 9 | ||||
-rw-r--r-- | test/MC/AsmParser/incbin_abcd | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/MC/AsmParser/directive_incbin.s b/test/MC/AsmParser/directive_incbin.s new file mode 100644 index 0000000..230573c --- /dev/null +++ b/test/MC/AsmParser/directive_incbin.s @@ -0,0 +1,9 @@ +# RUN: llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s + +.data +.incbin "incbin_abcd" + +# CHECK: .byte 97 +# CHECK: .byte 98 +# CHECK: .byte 99 +# CHECK: .byte 100 diff --git a/test/MC/AsmParser/incbin_abcd b/test/MC/AsmParser/incbin_abcd new file mode 100644 index 0000000..acbe86c --- /dev/null +++ b/test/MC/AsmParser/incbin_abcd @@ -0,0 +1 @@ +abcd |