summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-11-05 01:26:24 +0300
committerSimon Atanasyan <simon@atanasyan.com>2019-11-07 13:58:50 +0300
commitbf996f761b99108c71efc84688597b7c3c63139e (patch)
treeb16e69abb2cd252011a44f9c07534bc12a046c45 /llvm/test/MC/Mips
parent3718102d40d60ba415ac2b2b1108e411838838a5 (diff)
downloadbcm5719-llvm-bf996f761b99108c71efc84688597b7c3c63139e.tar.gz
bcm5719-llvm-bf996f761b99108c71efc84688597b7c3c63139e.zip
[mips] Write `AFL_EXT_OCTEONP` flag to the `.MIPS.abiflags` section
Differential Revision: https://reviews.llvm.org/D69851
Diffstat (limited to 'llvm/test/MC/Mips')
-rw-r--r--llvm/test/MC/Mips/mips_abi_flags_xx.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/mips_abi_flags_xx.s b/llvm/test/MC/Mips/mips_abi_flags_xx.s
index f8386b49774..35b97b5ac63 100644
--- a/llvm/test/MC/Mips/mips_abi_flags_xx.s
+++ b/llvm/test/MC/Mips/mips_abi_flags_xx.s
@@ -17,6 +17,11 @@
# RUN: llvm-readobj --sections --section-data --section-relocations -A - | \
# RUN: FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEON
+# RUN: llvm-mc -triple mips64-unknown-linux-gnu \
+# RUN: -mcpu=octeon+ -filetype=obj -o - /dev/null \
+# RUN: | llvm-readobj --sections --section-data --section-relocations -A - \
+# RUN: | FileCheck %s -check-prefixes=CHECK-OBJ,CHECK-OBJ-64R2,CHECK-OBJ-OCTEONP
+
# CHECK-ASM: .module fp=xx
# Checking if the Mips.abiflags were correctly emitted.
@@ -43,6 +48,7 @@
# CHECK-OBJ-64R2-NEXT: ISA: MIPS64r2
# CHECK-OBJ-MIPS-NEXT: ISA Extension: None (0x0)
# CHECK-OBJ-OCTEON-NEXT: ISA Extension: Cavium Networks Octeon (0x5)
+# CHECK-OBJ-OCTEONP-NEXT: ISA Extension: Cavium Networks OcteonP (0x3)
# CHECK-OBJ-NEXT: ASEs [ (0x0)
# CHECK-OBJ-NEXT: ]
# CHECK-OBJ-32R1-NEXT: FP ABI: Hard float (32-bit CPU, Any FPU) (0x5)
OpenPOWER on IntegriCloud