diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-17 16:24:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-11-17 16:24:40 +0000 |
commit | 435279b1a6dd5f48d30b1ca793cb661a271c4157 (patch) | |
tree | 12eab7f66a960ac7d2e03433e30f5fabe24d69ca | |
parent | 110f22aae897c348c97c09bbab8de12b3e82251d (diff) |
Add support for .int.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119512 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 | ||||
-rw-r--r-- | test/MC/ELF/n_bytes.s | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 38b7b276c1..303353b2b6 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -951,6 +951,8 @@ bool AsmParser::ParseStatement() { return ParseDirectiveValue(2); if (IDVal == ".long") return ParseDirectiveValue(4); + if (IDVal == ".int") + return ParseDirectiveValue(4); if (IDVal == ".4byte") return ParseDirectiveValue(4); if (IDVal == ".quad") diff --git a/test/MC/ELF/n_bytes.s b/test/MC/ELF/n_bytes.s index 3a8df99eda..59d67bfa71 100644 --- a/test/MC/ELF/n_bytes.s +++ b/test/MC/ELF/n_bytes.s @@ -3,7 +3,7 @@ .2byte 42, 1, 2, 3 .4byte 42, 1, 2, 3 .8byte 42, 1, 2, 3 - + .int 42, 1, 2, 3 // CHECK: # Section 0x00000001 // CHECK-NEXT: (('sh_name', 0x00000001) # '.text' @@ -11,10 +11,10 @@ // CHECK-NEXT: ('sh_flags', 0x00000006) // CHECK-NEXT: ('sh_addr', 0x00000000) // CHECK-NEXT: ('sh_offset', 0x00000040) -// CHECK-NEXT: ('sh_size', 0x00000038) +// CHECK-NEXT: ('sh_size', 0x00000048) // CHECK-NEXT: ('sh_link', 0x00000000) // CHECK-NEXT: ('sh_info', 0x00000000) // CHECK-NEXT: ('sh_addralign', 0x00000004) // CHECK-NEXT: ('sh_entsize', 0x00000000) -// CHECK-NEXT: ('_section_data', '2a000100 02000300 2a000000 01000000 02000000 03000000 2a000000 00000000 01000000 00000000 02000000 00000000 03000000 00000000') +// CHECK-NEXT: ('_section_data', '2a000100 02000300 2a000000 01000000 02000000 03000000 2a000000 00000000 01000000 00000000 02000000 00000000 03000000 00000000 2a000000 01000000 02000000 03000000') // CHECK-NEXT: ), |