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 | b67912d5cdc0d185d3530a81b5cce7b3ffc5fc50 (patch) | |
| tree | 57ce6ce08f3c73191c9d37591d2f5781010d5cfa | |
| parent | 5c996894bd314601be9c616368b56bea0de19904 (diff) | |
| download | bcm5719-llvm-b67912d5cdc0d185d3530a81b5cce7b3ffc5fc50.tar.gz bcm5719-llvm-b67912d5cdc0d185d3530a81b5cce7b3ffc5fc50.zip | |
Add support for .int.
llvm-svn: 119512
| -rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/MC/ELF/n_bytes.s | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 38b7b276c10..303353b2b65 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/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/llvm/test/MC/ELF/n_bytes.s b/llvm/test/MC/ELF/n_bytes.s index 3a8df99edab..59d67bfa71f 100644 --- a/llvm/test/MC/ELF/n_bytes.s +++ b/llvm/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: ), |

