-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PPC] Remove Darwin support from POWER backend.
This patch removes uses of the Darwin ABI for PowerPC related test cases. This is the first step in removing Darwin support from the POWER backend. clang/test/CodeGen/darwin-ppc-varargs.c was deleted because it was a darwin/ppc specific test case. All other tests were updated to remove the darwin/ppc specific invocation. Phabricator Review: https://reviews.llvm.org/D50989. llvm-svn: 340770
- Loading branch information
Showing
6 changed files
with
7 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,18 @@ | ||
| // REQUIRES: powerpc-registered-target | ||
| // RUN: %clang_cc1 -triple powerpc-apple-macosx10.4.0 -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s | ||
| // RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu -emit-llvm -o - %s -O2 -disable-llvm-passes | FileCheck %s | ||
|
|
||
| int boolsize = sizeof(_Bool); | ||
| // CHECK: boolsize = global i32 4, align 4 | ||
| // CHECK: boolsize = global i32 1, align 4 | ||
|
|
||
| void f(_Bool *x, _Bool *y) { | ||
| *x = *y; | ||
| } | ||
|
|
||
| // CHECK-LABEL: define void @f( | ||
| // CHECK: [[FROMMEM:%.*]] = load i32, i32* % | ||
| // CHECK: [[BOOLVAL:%.*]] = trunc i32 [[FROMMEM]] to i1 | ||
| // CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i32 | ||
| // CHECK: store i32 [[TOMEM]] | ||
| // CHECK: [[FROMMEM:%.*]] = load i8, i8* % | ||
| // CHECK: [[BOOLVAL:%.*]] = trunc i8 [[FROMMEM]] to i1 | ||
| // CHECK: [[TOMEM:%.*]] = zext i1 [[BOOLVAL]] to i8 | ||
| // CHECK: store i8 [[TOMEM]] | ||
| // CHECK: ret void | ||
|
|
||
| // CHECK: i32 0, i32 2} | ||
| // CHECK: i8 0, i8 2} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,8 @@ | ||
| // RUN: %clang_cc1 -triple powerpc64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s --check-prefix=POWER64-LINUX | ||
| // RUN: %clang_cc1 -triple powerpc-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s --check-prefix=POWER-LINUX | ||
| // RUN: %clang_cc1 -triple powerpc64-apple-darwin9 %s -emit-llvm -o - | FileCheck %s --check-prefix=POWER64-DARWIN | ||
| // RUN: %clang_cc1 -triple powerpc-apple-darwin9 %s -emit-llvm -o - | FileCheck %s --check-prefix=POWER-DARWIN | ||
| // RUN: %clang_cc1 -triple s390x-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s --check-prefix=S390X-LINUX | ||
|
|
||
| void f(long double) {} | ||
| // POWER64-LINUX: _Z1fg | ||
| // POWER-LINUX: _Z1fg | ||
| // POWER64-DARWIN: _Z1fe | ||
| // POWER-DARWIN: _Z1fe | ||
| // S390X-LINUX: _Z1fg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters