forked from chapuni/llvm-project-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-land r345676 "[Win64] Handle passing i128 by value"
Fix the unintended switch/case fallthrough to avoid changing long double behavior.
- Loading branch information
Showing
2 changed files
with
49 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -o - %s \ | ||
// RUN: | FileCheck %s --check-prefix=GNU64 | ||
// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s \ | ||
// RUN: | FileCheck %s --check-prefix=MSC64 | ||
|
||
typedef int int128_t __attribute__((mode(TI))); | ||
|
||
int128_t foo() { return 0; } | ||
|
||
// GNU64: define dso_local <2 x i64> @foo() | ||
// MSC64: define dso_local <2 x i64> @foo() | ||
|
||
int128_t bar(int128_t a, int128_t b) { return a * b; } | ||
|
||
// GNU64: define dso_local <2 x i64> @bar(i128*, i128*) | ||
// MSC64: define dso_local <2 x i64> @bar(i128*, i128*) |