forked from OSchip/llvm-project
[PowerPC] Define XL-compatible macros only for AIX and Linux
Since XLC only ever shipped on PowerPC AIX and Linux, it is not reasonable to provide the compatibility macros on any target other than those two. This patch restricts those macros to AIX/Linux. Differential revision: https://reviews.llvm.org/D110213
This commit is contained in:
parent
6709b193ea
commit
c9539f957f
|
@ -250,7 +250,10 @@ static void defineXLCompatMacros(MacroBuilder &Builder) {
|
|||
void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
|
||||
MacroBuilder &Builder) const {
|
||||
|
||||
defineXLCompatMacros(Builder);
|
||||
// We define the XLC compatibility macros only on AIX and Linux since XLC
|
||||
// was never available on any other platforms.
|
||||
if (getTriple().isOSAIX() || getTriple().isOSLinux())
|
||||
defineXLCompatMacros(Builder);
|
||||
|
||||
// Target identification.
|
||||
Builder.defineMacro("__ppc__");
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
// RUN: FileCheck %s --check-prefix=CHECK32-ERROR
|
||||
// RUN: %clang_cc1 -O2 -triple=powerpc64-unknown-aix -emit-llvm %s -o - | \
|
||||
// RUN: FileCheck %s --check-prefix=CHECK64
|
||||
// RUN: %clang_cc1 -O2 -triple=powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -O2 -triple=powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -o - | FileCheck %s --check-prefix=CHECK64
|
||||
// RUN: %clang_cc1 -O2 -triple=powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -O2 -triple=powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -o - | FileCheck %s --check-prefix=CHECK64
|
||||
|
||||
long test_ldarx(volatile long* a) {
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
// RUN: -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -target-cpu pwr8 -triple=powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -target-cpu pwr8 -triple=powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -target-cpu pwr8 -triple=powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -target-cpu pwr8 -triple=powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -target-cpu pwr8 -triple=powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - | FileCheck %s
|
||||
// RAUN: not %clang_cc1 -O2 -target-cpu pwr7 -triple=powerpc-unknown-aix \
|
||||
// RAUN: -emit-llvm %s -o - 2>&1 | FileCheck %s \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=64BIT
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefix=64BITLE
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=64BITAIX
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=32BIT
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefix=32BITLE
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=32BITAIX
|
||||
|
@ -175,37 +175,47 @@ double _Complex testcmplx(double real, double imag) {
|
|||
//
|
||||
// 32BIT-LABEL: @testcmplxf(
|
||||
// 32BIT-NEXT: entry:
|
||||
// 32BIT-NEXT: [[RETVAL:%.*]] = alloca { float, float }, align 4
|
||||
// 32BIT-NEXT: [[REAL_ADDR:%.*]] = alloca float, align 4
|
||||
// 32BIT-NEXT: [[IMAG_ADDR:%.*]] = alloca float, align 4
|
||||
// 32BIT-NEXT: store float [[REAL:%.*]], float* [[REAL_ADDR]], align 4
|
||||
// 32BIT-NEXT: store float [[IMAG:%.*]], float* [[IMAG_ADDR]], align 4
|
||||
// 32BIT-NEXT: [[TMP0:%.*]] = load float, float* [[REAL_ADDR]], align 4
|
||||
// 32BIT-NEXT: [[TMP1:%.*]] = load float, float* [[IMAG_ADDR]], align 4
|
||||
// 32BIT-NEXT: [[RETVAL_REALP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[RETVAL]], i32 0, i32 0
|
||||
// 32BIT-NEXT: [[RETVAL_IMAGP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[RETVAL]], i32 0, i32 1
|
||||
// 32BIT-NEXT: store float [[TMP0]], float* [[RETVAL_REALP]], align 4
|
||||
// 32BIT-NEXT: store float [[TMP1]], float* [[RETVAL_IMAGP]], align 4
|
||||
// 32BIT-NEXT: [[TMP2:%.*]] = bitcast { float, float }* [[RETVAL]] to i64*
|
||||
// 32BIT-NEXT: [[TMP3:%.*]] = load i64, i64* [[TMP2]], align 4
|
||||
// 32BIT-NEXT: ret i64 [[TMP3]]
|
||||
// 32BIT-NEXT: [[AGG_RESULT_REALP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT:%.*]], i32 0, i32 0
|
||||
// 32BIT-NEXT: [[AGG_RESULT_IMAGP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BIT-NEXT: store float [[TMP0]], float* [[AGG_RESULT_REALP]], align 4
|
||||
// 32BIT-NEXT: store float [[TMP1]], float* [[AGG_RESULT_IMAGP]], align 4
|
||||
// 32BIT-NEXT: [[AGG_RESULT_REALP1:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 0
|
||||
// 32BIT-NEXT: [[AGG_RESULT_REAL:%.*]] = load float, float* [[AGG_RESULT_REALP1]], align 4
|
||||
// 32BIT-NEXT: [[AGG_RESULT_IMAGP2:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BIT-NEXT: [[AGG_RESULT_IMAG:%.*]] = load float, float* [[AGG_RESULT_IMAGP2]], align 4
|
||||
// 32BIT-NEXT: [[AGG_RESULT_REALP3:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 0
|
||||
// 32BIT-NEXT: [[AGG_RESULT_IMAGP4:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BIT-NEXT: store float [[AGG_RESULT_REAL]], float* [[AGG_RESULT_REALP3]], align 4
|
||||
// 32BIT-NEXT: store float [[AGG_RESULT_IMAG]], float* [[AGG_RESULT_IMAGP4]], align 4
|
||||
// 32BIT-NEXT: ret void
|
||||
//
|
||||
// 32BITLE-LABEL: @testcmplxf(
|
||||
// 32BITLE-NEXT: entry:
|
||||
// 32BITLE-NEXT: [[RETVAL:%.*]] = alloca { float, float }, align 4
|
||||
// 32BITLE-NEXT: [[REAL_ADDR:%.*]] = alloca float, align 4
|
||||
// 32BITLE-NEXT: [[IMAG_ADDR:%.*]] = alloca float, align 4
|
||||
// 32BITLE-NEXT: store float [[REAL:%.*]], float* [[REAL_ADDR]], align 4
|
||||
// 32BITLE-NEXT: store float [[IMAG:%.*]], float* [[IMAG_ADDR]], align 4
|
||||
// 32BITLE-NEXT: [[TMP0:%.*]] = load float, float* [[REAL_ADDR]], align 4
|
||||
// 32BITLE-NEXT: [[TMP1:%.*]] = load float, float* [[IMAG_ADDR]], align 4
|
||||
// 32BITLE-NEXT: [[RETVAL_REALP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[RETVAL]], i32 0, i32 0
|
||||
// 32BITLE-NEXT: [[RETVAL_IMAGP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[RETVAL]], i32 0, i32 1
|
||||
// 32BITLE-NEXT: store float [[TMP0]], float* [[RETVAL_REALP]], align 4
|
||||
// 32BITLE-NEXT: store float [[TMP1]], float* [[RETVAL_IMAGP]], align 4
|
||||
// 32BITLE-NEXT: [[TMP2:%.*]] = bitcast { float, float }* [[RETVAL]] to i64*
|
||||
// 32BITLE-NEXT: [[TMP3:%.*]] = load i64, i64* [[TMP2]], align 4
|
||||
// 32BITLE-NEXT: ret i64 [[TMP3]]
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_REALP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT:%.*]], i32 0, i32 0
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_IMAGP:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BITLE-NEXT: store float [[TMP0]], float* [[AGG_RESULT_REALP]], align 4
|
||||
// 32BITLE-NEXT: store float [[TMP1]], float* [[AGG_RESULT_IMAGP]], align 4
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_REALP1:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 0
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_REAL:%.*]] = load float, float* [[AGG_RESULT_REALP1]], align 4
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_IMAGP2:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_IMAG:%.*]] = load float, float* [[AGG_RESULT_IMAGP2]], align 4
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_REALP3:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 0
|
||||
// 32BITLE-NEXT: [[AGG_RESULT_IMAGP4:%.*]] = getelementptr inbounds { float, float }, { float, float }* [[AGG_RESULT]], i32 0, i32 1
|
||||
// 32BITLE-NEXT: store float [[AGG_RESULT_REAL]], float* [[AGG_RESULT_REALP3]], align 4
|
||||
// 32BITLE-NEXT: store float [[AGG_RESULT_IMAG]], float* [[AGG_RESULT_IMAGP4]], align 4
|
||||
// 32BITLE-NEXT: ret void
|
||||
//
|
||||
// 32BITAIX-LABEL: @testcmplxf(
|
||||
// 32BITAIX-NEXT: entry:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=CHECK-64B
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefix=CHECK-64B
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=CHECK-32B
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | \
|
||||
// RUN: FileCheck %s --check-prefix=CHECK-64
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | \
|
||||
// RUN: FileCheck %s --check-prefix=CHECK-64
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | \
|
||||
// RUN: FileCheck %s --check-prefix=CHECK-64
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -fsyntax-only \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -fsyntax-only \
|
||||
// RUN: -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -fsyntax-only \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -fsyntax-only \
|
||||
// RUN: -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -fsyntax-only \
|
||||
// RUN: -Wall -Werror -verify %s
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -O1 -disable-llvm-passes \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=64BIT
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -O1 -disable-llvm-passes \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefix=64BIT
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=64BIT
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-unknown -O1 -disable-llvm-passes \
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=32BIT
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-unknown -O1 -disable-llvm-passes \
|
||||
// RUN: %clang_cc1 -triple powerpcle-unknown-linux-gnu -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefix=32BIT
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix -O1 -disable-llvm-passes \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefix=32BIT
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
||||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
|
||||
// CHECK-LABEL: @test_builtin_ppc_fetch_and_add(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target.
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target.
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefixes=CHECK-32B
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefixes=64BIT --check-prefix=BOTH
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s --check-prefixes=64BIT --check-prefix=BOTH
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s --check-prefixes=32BIT --check-prefix=BOTH
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr7 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr8 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr7 -o - | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr8 -o - | FileCheck %s -check-prefix=CHECK-PWR8
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr8 -o - | FileCheck %s -check-prefix=CHECK-PWR8
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr8 -o - | FileCheck %s -check-prefix=CHECK-PWR8
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix %s -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr8 -o - | FileCheck %s -check-prefix=CHECK-PWR8
|
||||
// RUN: not %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: not %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr7 -o - 2>&1 | FileCheck %s -check-prefix=CHECK-NOPWR8
|
||||
// RUN: not %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr7 -o - 2>&1 | FileCheck %s -check-prefix=CHECK-NOPWR8
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-cpu pwr9 \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-cpu pwr9 \
|
||||
// RUN: -fsyntax-only -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -target-cpu pwr9 \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr9 \
|
||||
// RUN: -fsyntax-only -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -target-cpu pwr9 \
|
||||
// RUN: -fsyntax-only -Wall -Werror -verify %s
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-cpu pwr9 \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -target-cpu pwr9 \
|
||||
// RUN: -verify %s
|
||||
|
||||
extern unsigned long long ull;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | FileCheck %s
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -emit-llvm %s \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: %clang_cc1 -triple powerpc-unknown-aix %s -emit-llvm %s \
|
||||
// RUN: -target-cpu pwr9 -o - | FileCheck %s
|
||||
// RUN: not %clang_cc1 -triple powerpc64-unknown-unknown -emit-llvm-only %s \
|
||||
// RUN: not %clang_cc1 -triple powerpc64-unknown-linux-gnu -emit-llvm-only %s \
|
||||
// RUN: -target-cpu pwr8 2>&1 | FileCheck %s --check-prefix=CHECK-NONPWR9-ERR
|
||||
// RUN: not %clang_cc1 -target-feature -vsx -triple powerpc64-unknown-unknown -emit-llvm-only %s \
|
||||
// RUN: -target-cpu pwr9 2>&1 | FileCheck %s --check-prefix=CHECK-NOVSX-ERR
|
||||
// RUN: not %clang_cc1 -target-feature -vsx -target-cpu pwr9 \
|
||||
// RUN: -triple powerpc64-unknown-linux-gnu -emit-llvm-only %s 2>&1 \
|
||||
// RUN: | FileCheck %s --check-prefix=CHECK-NOVSX-ERR
|
||||
|
||||
extern double d;
|
||||
extern float f;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | \
|
||||
// RUN: FileCheck %s --check-prefixes=CHECK64
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | \
|
||||
// RUN: FileCheck %s --check-prefixes=CHECK64
|
||||
// RUN: not %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr7 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-linux-gnu \
|
||||
// RUN: -emit-llvm %s -o - -target-cpu pwr8 | \
|
||||
// RUN: FileCheck %s
|
||||
// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -fsyntax-only \
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu -fsyntax-only \
|
||||
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -fsyntax-only \
|
||||
// RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -fsyntax-only \
|
||||
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
||||
// RUN: %clang_cc1 -triple powerpc64-unknown-aix -fsyntax-only \
|
||||
// RUN: -target-cpu pwr8 -Wall -Werror -verify %s
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// REQUIRES: powerpc-registered-target
|
||||
// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx \
|
||||
// RUN: -triple powerpc64-unknown-unknown -emit-llvm %s -o - \
|
||||
// RUN: -triple powerpc64-unknown-linux-gnu -emit-llvm %s -o - \
|
||||
// RUN: -D__XL_COMPAT_ALTIVEC__ -target-cpu pwr7 | FileCheck %s
|
||||
// RUN: %clang_cc1 -target-feature +altivec -target-feature +vsx \
|
||||
// RUN: -triple powerpc64le-unknown-unknown -emit-llvm %s -o - \
|
||||
// RUN: -triple powerpc64le-unknown-linux-gnu -emit-llvm %s -o - \
|
||||
// RUN: -D__XL_COMPAT_ALTIVEC__ -target-cpu pwr8 | FileCheck %s
|
||||
#include <altivec.h>
|
||||
vector double vd = { 3.4e22, 1.8e-3 };
|
||||
|
|
Loading…
Reference in New Issue