summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-06-21 20:42:34 +0000
committerDavide Italiano <davide@freebsd.org>2017-06-21 20:42:34 +0000
commitcae62546acdecd3d1abb68652b4ce214224788f9 (patch)
tree6a4ece82a26ba819cc67c1a804f7168068c08fd5 /llvm/test/CodeGen
parent75ed943defe807616016518ee6959c4eec6b80f9 (diff)
downloadbcm5719-llvm-cae62546acdecd3d1abb68652b4ce214224788f9.tar.gz
bcm5719-llvm-cae62546acdecd3d1abb68652b4ce214224788f9.zip
[Target/Mips] Add test associated with r305949.
llvm-svn: 305950
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Mips/mips-rdata.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/mips-rdata.s b/llvm/test/CodeGen/Mips/mips-rdata.s
new file mode 100644
index 00000000000..89f96195297
--- /dev/null
+++ b/llvm/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: ]
OpenPOWER on IntegriCloud