summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-04-06 20:23:36 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-04-06 20:23:36 +0000
commit3e59b5edd61d9a77a2529661b82a1b408e9ee7a1 (patch)
treeb5bf1c9f78bbea2d189b6bb122bec198df29ad24 /test
parentba4d45737f6e1094195823b33fb9868570ae1701 (diff)
downloadexternal_llvm-3e59b5edd61d9a77a2529661b82a1b408e9ee7a1.zip
external_llvm-3e59b5edd61d9a77a2529661b82a1b408e9ee7a1.tar.gz
external_llvm-3e59b5edd61d9a77a2529661b82a1b408e9ee7a1.tar.bz2
Add lines in global-address.ll to test N32 and N64 code generation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/global-address.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/global-address.ll b/test/CodeGen/Mips/global-address.ll
index f3b0e5c..0d49a74 100644
--- a/test/CodeGen/Mips/global-address.ll
+++ b/test/CodeGen/Mips/global-address.ll
@@ -1,5 +1,9 @@
; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
; RUN: llc -march=mipsel -relocation-model=static -mtriple=mipsel-linux-gnu < %s | FileCheck %s -check-prefix=STATIC-O32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n32 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n32 -relocation-model=static -mtriple=mipsel-linux-gnu < %s | FileCheck %s -check-prefix=STATIC-N32
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N64
+; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-N64
@s1 = internal unnamed_addr global i32 8, align 4
@g1 = external global i32