diff options
| author | Reid Kleckner <rnk@google.com> | 2018-11-01 00:00:03 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-11-01 00:00:03 +0000 |
| commit | dffe5a3807c8327817c5b72f1fc44f1f39907936 (patch) | |
| tree | 5c1cda55d2f5d14e66259fb60d1815dfe6378940 /compiler-rt/test/builtins/Unit/popcountti2_test.c | |
| parent | b61232eacdf1b9fcd3aadb962a83be5b47cc1e1e (diff) | |
| download | bcm5719-llvm-dffe5a3807c8327817c5b72f1fc44f1f39907936.tar.gz bcm5719-llvm-dffe5a3807c8327817c5b72f1fc44f1f39907936.zip | |
Compile and test i128 math builtins for Win64
Summary:
Windows has always been LLP64, not LP64, so the macros were incorrect.
Check for _WIN64, since AArch64 sets that too.
The tests have to be fixed up in two main ways:
1. Use 'ULL' suffixes to avoid sign extension when passing hex literals
with the sign bit set to signed 128 arguments. Clang
-fms-compatibility makes such hex literals signed, not unsigned.
2. Disable various tests for 80-bit long double interoperation with i128
values.
Reviewers: joerg, mstorsjo
Subscribers: javed.absar, kristof.beyls, hiraditya, aheejin, llvm-commits
Differential Revision: https://reviews.llvm.org/D53918
llvm-svn: 345796
Diffstat (limited to 'compiler-rt/test/builtins/Unit/popcountti2_test.c')
| -rw-r--r-- | compiler-rt/test/builtins/Unit/popcountti2_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/builtins/Unit/popcountti2_test.c b/compiler-rt/test/builtins/Unit/popcountti2_test.c index ef8b2c3836b..91c169fb550 100644 --- a/compiler-rt/test/builtins/Unit/popcountti2_test.c +++ b/compiler-rt/test/builtins/Unit/popcountti2_test.c @@ -1,4 +1,5 @@ // RUN: %clang_builtins %s %librt -o %t && %run %t +// REQUIRES: int128 //===-- popcountti2_test.c - Test __popcountti2 ----------------------------===// // // The LLVM Compiler Infrastructure |

