2013-12-14 04:11:02 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-unknown-unknown -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=I686-UNKNOWN %s
|
2014-01-04 03:22:05 +08:00
|
|
|
// I686-UNKNOWN: target datalayout = "e-m:e-p:32:32-f64:32:64-f80:32-n8:16:32-S128"
|
2013-12-14 04:11:02 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple i686-apple-darwin9 -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=I686-DARWIN %s
|
2014-01-04 03:22:05 +08:00
|
|
|
// I686-DARWIN: target datalayout = "e-m:o-p:32:32-f64:32:64-f80:128-n8:16:32-S128"
|
2013-12-14 04:11:02 +08:00
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple i686-unknown-win32 -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=I686-WIN32 %s
|
2015-05-01 06:42:45 +08:00
|
|
|
// I686-WIN32: target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple i686-unknown-cygwin -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=I686-CYGWIN %s
|
2015-05-01 06:42:45 +08:00
|
|
|
// I686-CYGWIN: target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2013-12-14 04:11:02 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=X86_64 %s
|
2014-01-04 03:22:05 +08:00
|
|
|
// X86_64: target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple xcore-unknown-unknown -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck --check-prefix=XCORE %s
|
2014-01-04 03:22:05 +08:00
|
|
|
// XCORE: target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:32-f64:32-a:0:32-n32"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple sparc-sun-solaris -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck %s --check-prefix=SPARC-V8
|
2014-01-04 03:22:05 +08:00
|
|
|
// SPARC-V8: target datalayout = "E-m:e-p:32:32-i64:64-f128:64-n32-S64"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple sparcv9-sun-solaris -emit-llvm -o - %s | \
|
|
|
|
// RUN: FileCheck %s --check-prefix=SPARC-V9
|
2014-01-04 03:22:05 +08:00
|
|
|
// SPARC-V9: target datalayout = "E-m:e-i64:64-n32:64-S128"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple mipsel-linux-gnu -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MIPS-32EL
|
2014-01-04 03:22:05 +08:00
|
|
|
// MIPS-32EL: target datalayout = "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple mips-linux-gnu -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MIPS-32EB
|
2014-01-04 03:22:05 +08:00
|
|
|
// MIPS-32EB: target datalayout = "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple mips64el-linux-gnu -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MIPS-64EL
|
2016-07-19 18:49:03 +08:00
|
|
|
// MIPS-64EL: target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
|
2013-12-14 05:49:53 +08:00
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple mips64el-linux-gnu -o - -emit-llvm -target-abi n32 \
|
|
|
|
// RUN: %s | FileCheck %s -check-prefix=MIPS-64EL-N32
|
2016-07-19 18:49:03 +08:00
|
|
|
// MIPS-64EL-N32: target datalayout = "e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2013-12-14 05:49:53 +08:00
|
|
|
// RUN: %clang_cc1 -triple mips64-linux-gnu -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MIPS-64EB
|
2016-07-19 18:49:03 +08:00
|
|
|
// MIPS-64EB: target datalayout = "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple mips64-linux-gnu -o - -emit-llvm %s -target-abi n32 \
|
|
|
|
// RUN: | FileCheck %s -check-prefix=MIPS-64EB-N32
|
2016-07-19 18:49:03 +08:00
|
|
|
// MIPS-64EB-N32: target datalayout = "E-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple powerpc64-lv2 -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=PS3
|
2014-01-04 03:22:05 +08:00
|
|
|
// PS3: target datalayout = "E-m:e-p:32:32-i64:64-n32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple i686-nacl -o - -emit-llvm %s | \
|
2013-12-18 12:35:56 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=I686-NACL
|
2014-01-04 03:22:05 +08:00
|
|
|
// I686-NACL: target datalayout = "e-m:e-p:32:32-i64:64-n8:16:32-S128"
|
2013-12-18 12:35:56 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-nacl -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=X86_64-NACL
|
2014-01-04 03:22:05 +08:00
|
|
|
// X86_64-NACL: target datalayout = "e-m:e-p:32:32-i64:64-n8:16:32:64-S128"
|
2013-12-18 12:35:56 +08:00
|
|
|
|
2015-03-31 04:31:33 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm-nacl -o - -emit-llvm %s | \
|
2013-12-18 12:35:56 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=ARM-NACL
|
2014-10-15 04:57:29 +08:00
|
|
|
// ARM-NACL: target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S128"
|
2013-12-18 12:35:56 +08:00
|
|
|
|
2013-12-19 06:40:42 +08:00
|
|
|
// RUN: %clang_cc1 -triple mipsel-nacl -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MIPS-NACL
|
2014-01-04 03:22:05 +08:00
|
|
|
// MIPS-NACL: target datalayout = "e-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64"
|
2013-12-19 06:40:42 +08:00
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple le32-nacl -o - -emit-llvm %s | \
|
2013-12-18 12:35:56 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=LE32-NACL
|
2013-12-19 07:41:04 +08:00
|
|
|
// LE32-NACL: target datalayout = "e-p:32:32-i64:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2015-09-04 06:51:53 +08:00
|
|
|
// RUN: %clang_cc1 -triple wasm32-unknown-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=WEBASSEMBLY32
|
2016-01-07 11:20:15 +08:00
|
|
|
// WEBASSEMBLY32: target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
2015-09-04 06:51:53 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple wasm64-unknown-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=WEBASSEMBLY64
|
2016-01-07 11:20:15 +08:00
|
|
|
// WEBASSEMBLY64: target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128"
|
2015-09-04 06:51:53 +08:00
|
|
|
|
2016-03-29 05:02:54 +08:00
|
|
|
// RUN: %clang_cc1 -triple lanai-unknown-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=LANAI
|
|
|
|
// LANAI: target datalayout = "E-m:e-p:32:32-i64:64-a:0:32-n32-S64"
|
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=PPC
|
2014-01-04 03:22:05 +08:00
|
|
|
// PPC: target datalayout = "E-m:e-p:32:32-i64:64-n32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple powerpc64-freebsd -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=PPC64-FREEBSD
|
2014-01-04 03:22:05 +08:00
|
|
|
// PPC64-FREEBSD: target datalayout = "E-m:e-i64:64-n32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple powerpc64-linux -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=PPC64-LINUX
|
2017-02-10 12:35:21 +08:00
|
|
|
// PPC64-LINUX: target datalayout = "E-m:e-i64:64-n32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2014-03-24 23:48:02 +08:00
|
|
|
// RUN: %clang_cc1 -triple powerpc64le-linux -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=PPC64LE-LINUX
|
2017-02-10 12:35:21 +08:00
|
|
|
// PPC64LE-LINUX: target datalayout = "e-m:e-i64:64-n32:64"
|
2014-03-24 23:48:02 +08:00
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple nvptx-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=NVPTX
|
2017-07-21 05:16:03 +08:00
|
|
|
// NVPTX: target datalayout = "e-p:32:32-i64:64-i128:128-v16:16-v32:32-n16:32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple nvptx64-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=NVPTX64
|
2017-07-21 05:16:03 +08:00
|
|
|
// NVPTX64: target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple r600-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=R600
|
2018-03-28 03:26:51 +08:00
|
|
|
// R600: target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple r600-unknown -target-cpu cayman -o - -emit-llvm %s \
|
|
|
|
// RUN: | FileCheck %s -check-prefix=R600D
|
2018-03-28 03:26:51 +08:00
|
|
|
// R600D: target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2015-01-07 04:34:47 +08:00
|
|
|
// RUN: %clang_cc1 -triple amdgcn-unknown -target-cpu hawaii -o - -emit-llvm %s \
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: | FileCheck %s -check-prefix=R600SI
|
2018-03-28 03:26:51 +08:00
|
|
|
// R600SI: target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2015-01-28 23:38:44 +08:00
|
|
|
// Test default -target-cpu
|
|
|
|
// RUN: %clang_cc1 -triple amdgcn-unknown -o - -emit-llvm %s \
|
|
|
|
// RUN: | FileCheck %s -check-prefix=R600SIDefault
|
2018-03-28 03:26:51 +08:00
|
|
|
// R600SIDefault: target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"
|
2015-01-28 23:38:44 +08:00
|
|
|
|
2014-04-30 18:52:05 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm64-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=AARCH64
|
2016-07-08 04:02:25 +08:00
|
|
|
// AARCH64: target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2013-12-18 05:01:22 +08:00
|
|
|
// RUN: %clang_cc1 -triple thumb-unknown-gnueabi -o - -emit-llvm %s | \
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=THUMB
|
2014-10-15 06:12:21 +08:00
|
|
|
// THUMB: target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2013-12-18 05:01:22 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm-unknown-gnueabi -o - -emit-llvm %s | \
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: FileCheck %s -check-prefix=ARM
|
2014-10-15 04:57:29 +08:00
|
|
|
// ARM: target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple thumb-unknown -o - -emit-llvm -target-abi apcs-gnu \
|
|
|
|
// RUN: %s | FileCheck %s -check-prefix=THUMB-GNU
|
2014-10-15 06:12:21 +08:00
|
|
|
// THUMB-GNU: target datalayout = "e-m:e-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple arm-unknown -o - -emit-llvm -target-abi apcs-gnu \
|
|
|
|
// RUN: %s | FileCheck %s -check-prefix=ARM-GNU
|
2014-01-04 03:22:05 +08:00
|
|
|
// ARM-GNU: target datalayout = "e-m:e-p:32:32-f64:32:64-v64:32:64-v128:32:128-a:0:32-n32-S32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple hexagon-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=HEXAGON
|
2016-02-12 22:48:34 +08:00
|
|
|
// HEXAGON: target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple s390x-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SYSTEMZ
|
2014-01-04 03:22:05 +08:00
|
|
|
// SYSTEMZ: target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-a:8:16-n32:64"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
2015-05-06 03:35:52 +08:00
|
|
|
// RUN: %clang_cc1 -triple s390x-unknown -target-cpu z13 -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SYSTEMZ-VECTOR
|
2016-10-31 22:38:05 +08:00
|
|
|
// RUN: %clang_cc1 -triple s390x-unknown -target-cpu arch11 -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SYSTEMZ-VECTOR
|
2017-07-18 01:45:57 +08:00
|
|
|
// RUN: %clang_cc1 -triple s390x-unknown -target-cpu z14 -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SYSTEMZ-VECTOR
|
|
|
|
// RUN: %clang_cc1 -triple s390x-unknown -target-cpu arch12 -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SYSTEMZ-VECTOR
|
2015-05-06 03:35:52 +08:00
|
|
|
// SYSTEMZ-VECTOR: target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
|
|
|
|
|
2013-12-16 01:53:44 +08:00
|
|
|
// RUN: %clang_cc1 -triple msp430-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=MSP430
|
2017-06-24 05:12:56 +08:00
|
|
|
// MSP430: target datalayout = "e-m:e-p:16:16-i32:16-i64:16-f32:16-f64:16-a:8-n8:16-S16"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple tce-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=TCE
|
2016-11-17 00:21:59 +08:00
|
|
|
// TCE: target datalayout = "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:32-v128:32:32-v256:32:32-v512:32:32-v1024:32:32-a0:0:32-n32"
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple tcele-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=TCELE
|
|
|
|
// TCELE: target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:32-v128:32:32-v256:32:32-v512:32:32-v1024:32:32-a0:0:32-n32"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple spir-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SPIR
|
2013-12-17 07:27:41 +08:00
|
|
|
// SPIR: target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
|
2013-12-16 01:53:44 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple spir64-unknown -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=SPIR64
|
2013-12-17 07:27:41 +08:00
|
|
|
// SPIR64: target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
|
2015-06-11 06:59:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple bpfel -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=BPFEL
|
|
|
|
// BPFEL: target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128"
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -triple bpfeb -o - -emit-llvm %s | \
|
|
|
|
// RUN: FileCheck %s -check-prefix=BPFEB
|
|
|
|
// BPFEB: target datalayout = "E-m:e-p:64:64-i64:64-n32:64-S128"
|