Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LLVM project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Panda
LLVM project
Commits
8843245d
Commit
8843245d
authored
2 years ago
by
Jorge Gorbe Moya
Browse files
Options
Downloads
Patches
Plain Diff
Use portable formatting specified in test. NFCI.
parent
9e3678e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler-rt/test/builtins/Unit/udivmodei5_test.c
+4
-3
4 additions, 3 deletions
compiler-rt/test/builtins/Unit/udivmodei5_test.c
with
4 additions
and
3 deletions
compiler-rt/test/builtins/Unit/udivmodei5_test.c
+
4
−
3
View file @
8843245d
// RUN: %clang_builtins %s %librt -o %t && %run %t
#include "int_lib.h"
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
...
...
@@ -52,12 +53,12 @@ int test__udivmodei5(du_int a, du_int b, du_int expected_q, du_int expected_r,
for(unsigned i= words - 1; i >= sizeof(q); --i) {
#endif
if (quo_scratch[i] != 0) {
printf("error in __udivmodei5: %
llX / %llX = %llX, R = %llX
, expected quo_scratch[%d] == 0\n",
printf("error in __udivmodei5: %
" PRIX64 " / %" PRIX64 " = %" PRIX64 ", R = %" PRIX64 "
, expected quo_scratch[%d] == 0\n",
a, b, q, r, i);
return 1;
}
if (rem_scratch[i] != 0) {
printf("error in __udivmodei5: %
llX / %llX = %llX, R = %llX
, expected rem_scratch[%d] == 0\n",
printf("error in __udivmodei5: %
" PRIX64 " / %" PRIX64 " = %" PRIX64 ", R = %" PRIX64 "
, expected rem_scratch[%d] == 0\n",
a, b, q, r, i);
return 1;
...
...
@@ -65,7 +66,7 @@ int test__udivmodei5(du_int a, du_int b, du_int expected_q, du_int expected_r,
}
if (q != expected_q || r != expected_r)
printf("error in __udivmodei5: %
llX / %llX = %llX, R = %llX, expected %llX, %llX
\n",
printf("error in __udivmodei5: %
" PRIX64 " / %" PRIX64 " = %" PRIX64 ", R = %" PRIX64 ", expected %" PRIX64 ", %" PRIX64 "
\n",
a, b, q, r, expected_q, expected_r);
return !(q == expected_q && r == expected_r);
}
This diff is collapsed.
Click to expand it.
Panda
@nju
mentioned in commit
2aa575fd
·
2 years ago
mentioned in commit
2aa575fd
mentioned in commit 2aa575fd7f4b6432ab07e74bf1944ff167de3434
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment