summaryrefslogtreecommitdiffstats
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
commit487e56763de9d4973215c9a0836ff02458d05a06 (patch)
tree9f84d89b7338e94f42cd7a5f62808e239156f1f1
parentb7f68dee45f93698da419078b20c17d572ded696 (diff)
downloadbcm5719-llvm-487e56763de9d4973215c9a0836ff02458d05a06.tar.gz
bcm5719-llvm-487e56763de9d4973215c9a0836ff02458d05a06.zip
Add lines in global-address.ll to test N32 and N64 code generation.
llvm-svn: 154202
-rw-r--r--llvm/test/CodeGen/Mips/global-address.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/global-address.ll b/llvm/test/CodeGen/Mips/global-address.ll
index f3b0e5c28d7..0d49a7424ad 100644
--- a/llvm/test/CodeGen/Mips/global-address.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud