From: Davide Italiano Date: Wed, 21 Jun 2017 20:42:34 +0000 (+0000) Subject: [Target/Mips] Add test associated with r305949. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9500616f97a6ad8f66cf90ed5d158346cc473e81;p=llvm [Target/Mips] Add test associated with r305949. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305950 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Mips/mips-rdata.s b/test/CodeGen/Mips/mips-rdata.s new file mode 100644 index 00000000000..89f96195297 --- /dev/null +++ b/test/CodeGen/Mips/mips-rdata.s @@ -0,0 +1,13 @@ +# Check that .rdata sections have proper name, flags, and section types. + +# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o - \ +# RUN: | llvm-readobj -s | FileCheck %s + + .rdata + .word 0 + +# CHECK: Name: .rodata +# CHECK-NEXT: Type: SHT_PROGBITS +# CHECK-NEXT: Flags [ (0x2) +# CHECK-NEXT: SHF_ALLOC +# CHECK-NEXT: ]