summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/target-data.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-18 04:35:56 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-18 04:35:56 +0000
commit667c576169e182781965220910804f1c86bd3f7d (patch)
treeb849b56b4b5d24602792a83ca2fe2698e9cc4088 /clang/test/CodeGen/target-data.c
parent4960968509d9930985145e70e2f25b6d6145304d (diff)
downloadbcm5719-llvm-667c576169e182781965220910804f1c86bd3f7d.tar.gz
bcm5719-llvm-667c576169e182781965220910804f1c86bd3f7d.zip
Split this test into one per supporter nacl arch.
Right now clang produces the same DataLayout for all of them, but it could, for example, add 'n' specifications when the end architecture is given. No functionality change, this should just make future changes easier to read. llvm-svn: 197549
Diffstat (limited to 'clang/test/CodeGen/target-data.c')
-rw-r--r--clang/test/CodeGen/target-data.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/clang/test/CodeGen/target-data.c b/clang/test/CodeGen/target-data.c
index 814b1efdff2..7e14fcf3c4b 100644
--- a/clang/test/CodeGen/target-data.c
+++ b/clang/test/CodeGen/target-data.c
@@ -59,10 +59,20 @@
// PS3: target datalayout = "E-p:32:32-i64:64-n32:64"
// RUN: %clang_cc1 -triple i686-nacl -o - -emit-llvm %s | \
-// RUN: FileCheck %s -check-prefix=NACL
+// RUN: FileCheck %s -check-prefix=I686-NACL
+// I686-NACL: target datalayout = "e-p:32:32-i64:64-v128:32"
+
+// RUN: %clang_cc1 -triple x86_64-nacl -o - -emit-llvm %s | \
+// RUN: FileCheck %s -check-prefix=X86_64-NACL
+// X86_64-NACL: target datalayout = "e-p:32:32-i64:64-v128:32"
+
+// RUN: %clang_cc1 -triple arm-nacl -o - -emit-llvm %s | \
+// RUN: FileCheck %s -check-prefix=ARM-NACL
+// ARM-NACL: target datalayout = "e-p:32:32-i64:64-v128:32"
+
// RUN: %clang_cc1 -triple le32-nacl -o - -emit-llvm %s | \
-// RUN: FileCheck %s -check-prefix=NACL
-// NACL: target datalayout = "e-p:32:32-i64:64-v128:32"
+// RUN: FileCheck %s -check-prefix=LE32-NACL
+// LE32-NACL: target datalayout = "e-p:32:32-i64:64-v128:32"
// RUN: %clang_cc1 -triple powerpc-unknown -o - -emit-llvm %s | \
// RUN: FileCheck %s -check-prefix=PPC
OpenPOWER on IntegriCloud