diff options
author | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2013-09-05 19:14:26 +0000 |
---|---|---|
committer | Yunzhong Gao <Yunzhong_Gao@playstation.sony.com> | 2013-09-05 19:14:26 +0000 |
commit | ed119820f223401b0c64769759eafc46de30a9da (patch) | |
tree | 19e93cde057e3180059e8e7b9ca786487908f853 /test | |
parent | bc66071baa3153ba95d673b8084383835221eef6 (diff) | |
download | llvm-ed119820f223401b0c64769759eafc46de30a9da.tar.gz llvm-ed119820f223401b0c64769759eafc46de30a9da.tar.bz2 llvm-ed119820f223401b0c64769759eafc46de30a9da.tar.xz |
Improve handling of .file, .include and .incbin directives to
allow escaped octal character sequences.
The patch was discussed in Phabricator. See:
http://llvm-reviews.chandlerc.com/D1289
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/AsmParser/directive_file.s | 2 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_incbin.s | 2 | ||||
-rw-r--r-- | test/MC/AsmParser/directive_include.s | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/MC/AsmParser/directive_file.s b/test/MC/AsmParser/directive_file.s index 121890e69a..9b99e0f24e 100644 --- a/test/MC/AsmParser/directive_file.s +++ b/test/MC/AsmParser/directive_file.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s .file "hello" - .file 1 "world" + .file 1 "worl\144" # "\144" is "d" .file 2 "directory" "file" # CHECK: .file "hello" diff --git a/test/MC/AsmParser/directive_incbin.s b/test/MC/AsmParser/directive_incbin.s index 55f9c7951f..ed4e27a2c1 100644 --- a/test/MC/AsmParser/directive_incbin.s +++ b/test/MC/AsmParser/directive_incbin.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -triple i386-unknown-unknown %s -I %p | FileCheck %s .data -.incbin "incbin_abcd" +.incbin "incbin\137abcd" # "\137" is underscore "_" # CHECK: .ascii "abcd\n" diff --git a/test/MC/AsmParser/directive_include.s b/test/MC/AsmParser/directive_include.s index fabd941d99..f53bc671fc 100644 --- a/test/MC/AsmParser/directive_include.s +++ b/test/MC/AsmParser/directive_include.s @@ -5,5 +5,5 @@ # CHECK: a = 0 # CHECK: TESTB: TESTA: - .include "directive_set.s" + .include "directive\137set.s" # "\137" is underscore "_" TESTB: |