[compiler-rt] 8e8d0c1 - Fix integer suffix in truncxfhf2_test (#121388)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 31 09:27:19 PST 2024
Author: B I Mohammed Abbas
Date: 2024-12-31T09:27:15-08:00
New Revision: 8e8d0c149960c7d37e5c4487f434cdd41b1d3866
URL: https://github.com/llvm/llvm-project/commit/8e8d0c149960c7d37e5c4487f434cdd41b1d3866
DIFF: https://github.com/llvm/llvm-project/commit/8e8d0c149960c7d37e5c4487f434cdd41b1d3866.diff
LOG: Fix integer suffix in truncxfhf2_test (#121388)
Fixes error introduced by #120372.
Added:
Modified:
compiler-rt/test/builtins/Unit/truncxfhf2_test.c
Removed:
################################################################################
diff --git a/compiler-rt/test/builtins/Unit/truncxfhf2_test.c b/compiler-rt/test/builtins/Unit/truncxfhf2_test.c
index 9038a91a5b4c1a..b5e2a91f0b930e 100644
--- a/compiler-rt/test/builtins/Unit/truncxfhf2_test.c
+++ b/compiler-rt/test/builtins/Unit/truncxfhf2_test.c
@@ -48,17 +48,17 @@ int main() {
// Positive infinity
if (test_truncxfhf2(UINT16_C(0x7fff), UINT64_C(0x8000000000000000),
- UINT16_C(0x7c00U)))
+ UINT16_C(0x7c00)))
return 1;
// Negative infinity
if (test_truncxfhf2(UINT16_C(0xffff), UINT64_C(0x8000000000000000),
- UINT16_C(0xfc00U)))
+ UINT16_C(0xfc00)))
return 1;
// NaN
if (test_truncxfhf2(UINT16_C(0x7fff), UINT64_C(0xc000000000000000),
- UINT16_C(0x7e00U)))
+ UINT16_C(0x7e00)))
return 1;
return 0;
More information about the llvm-commits
mailing list