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
This commit is contained in:
Rafael Espindola 2013-12-18 04:35:56 +00:00
parent 4960968509
commit 667c576169
1 changed files with 13 additions and 3 deletions

View File

@ -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