summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/biggot.ll
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2019-09-18 12:24:57 +0000
committerSimon Atanasyan <simon@atanasyan.com>2019-09-18 12:24:57 +0000
commit9c36de99caa5356c7ed8760ce43d8c70cd15b2e6 (patch)
treef59c4076966d8e03ffb7730034237b1b7afa43b5 /llvm/test/CodeGen/Mips/biggot.ll
parent1ebdbad4751c5e0951974dd954a7e3b069ffd320 (diff)
downloadbcm5719-llvm-9c36de99caa5356c7ed8760ce43d8c70cd15b2e6.tar.gz
bcm5719-llvm-9c36de99caa5356c7ed8760ce43d8c70cd15b2e6.zip
[mips] Pass "xgot" flag as a subtarget feature
We need "xgot" flag in the MipsAsmParser to implement correct expansion of some pseudo instructions in case of using 32-bit GOT (XGOT). MipsAsmParser does not have reference to MipsSubtarget but has a reference to "feature bit set". llvm-svn: 372220
Diffstat (limited to 'llvm/test/CodeGen/Mips/biggot.ll')
-rw-r--r--llvm/test/CodeGen/Mips/biggot.ll14
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/Mips/biggot.ll b/llvm/test/CodeGen/Mips/biggot.ll
index 305dcf85572..aed1c487e7d 100644
--- a/llvm/test/CodeGen/Mips/biggot.ll
+++ b/llvm/test/CodeGen/Mips/biggot.ll
@@ -1,9 +1,11 @@
-; RUN: llc -march=mipsel -mxgot -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
-; RUN: llc -march=mips64el -mcpu=mips64r2 -mxgot -relocation-model=pic < %s | \
-; RUN: FileCheck %s -check-prefix=N64
-; RUN: llc -march=mipsel -mxgot -relocation-model=pic -fast-isel < %s | FileCheck %s -check-prefix=O32
-; RUN: llc -march=mips64el -mcpu=mips64r2 -mxgot -relocation-model=pic -fast-isel < %s | \
-; RUN: FileCheck %s -check-prefix=N64
+; RUN: llc -march=mipsel -mattr=+xgot \
+; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=+xgot \
+; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=N64
+; RUN: llc -march=mipsel -mattr=+xgot -fast-isel \
+; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=O32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=+xgot -fast-isel \
+; RUN: -relocation-model=pic < %s | FileCheck %s -check-prefix=N64
@v0 = external global i32
OpenPOWER on IntegriCloud