Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bf94424c
Commit
bf94424c
authored
Feb 12, 2013
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int128 tests
From-SVN: r195985
parent
18a78954
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/g++.dg/ext/int128-3.C
+12
-0
gcc/testsuite/g++.dg/ext/int128-4.C
+19
-0
No files found.
gcc/testsuite/g++.dg/ext/int128-3.C
0 → 100644
View file @
bf94424c
// Test for int128 enums.
// { dg-do compile { target int128 } }
// { dg-options "" }
enum
E
{
e1
=
0xffffffffffffffff
,
e2
,
e3
}
e
=
e3
;
#define SA(I,X) int a##I[(X)? 1 : -1]
SA
(
1
,
sizeof
(
E
)
==
sizeof
(
__int128
));
gcc/testsuite/g++.dg/ext/int128-4.C
0 → 100644
View file @
bf94424c
// Test for int128 arithmetic conversions.
// { dg-do compile { target int128 } }
// { dg-options "-std=gnu++11" }
template
<
class
T
,
class
U
>
struct
same
;
template
<
class
T
>
struct
same
<
T
,
T
>
{
};
#define assert_same(T,U) (same<T,U>())
int
main
()
{
long
long
ll
;
unsigned
long
long
ull
;
__int128
i8
;
unsigned
__int128
u8
;
assert_same
(
decltype
(
ll
+
i8
),
__int128
);
assert_same
(
decltype
(
ull
+
i8
),
__int128
);
assert_same
(
decltype
(
ll
+
u8
),
unsigned
__int128
);
assert_same
(
decltype
(
ull
+
u8
),
unsigned
__int128
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment