From: Rafael Espindola Date: Wed, 17 Nov 2010 16:24:40 +0000 (+0000) Subject: Add support for .int. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=435279b1a6dd5f48d30b1ca793cb661a271c4157;p=oota-llvm.git Add support for .int. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119512 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 38b7b276c10..303353b2b65 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 3a8df99edab..59d67bfa71f 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: ),