Skip to content

Commit

Permalink
Fix integer suffix in truncxfhf2_test (llvm#121388)
Browse files Browse the repository at this point in the history
Fixes error introduced by llvm#120372.
  • Loading branch information
biabbas authored Dec 31, 2024
1 parent 40e734e commit 8e8d0c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler-rt/test/builtins/Unit/truncxfhf2_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e8d0c1

Please sign in to comment.