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
45163b1a
Commit
45163b1a
authored
Sep 23, 2006
by
Mike Stump
Committed by
Mike Stump
Sep 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* obj-c++.dg/encode-3.mm: Fix for 64-bit support.
From-SVN: r117165
parent
be66ce1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/obj-c++.dg/encode-3.mm
+10
-4
No files found.
gcc/testsuite/ChangeLog
View file @
45163b1a
2006
-
09
-
22
Mike
Stump
<
mrs
@apple
.
com
>
*
obj
-
c
++
.
dg
/
encode
-
3
.
mm
:
Fix
for
64
-
bit
support
.
2006
-
09
-
22
Zdenek
Dvorak
<
dvorakz
@suse
.
cz
>
PR
tree
-
optimization
/
28888
gcc/testsuite/obj-c++.dg/encode-3.mm
View file @
45163b1a
...
...
@@ -14,16 +14,22 @@ Vec<double> dd;
const char *enc = @encode(Vec<float>);
const char *enc2 = @encode(Vec<double>);
#ifdef __LP64__
#define L "q"
#else
#define L "l"
#endif
int main(void) {
char *encode = @encode(long);
c
onst c
har *encode = @encode(long);
if (strcmp (encode,
"l"
))
if (strcmp (encode,
L
))
abort();
if (strcmp (enc, "{Vec<float>=ff
l
q}"))
if (strcmp (enc, "{Vec<float>=ff
" L "
q}"))
abort();
if (strcmp (enc2, "{Vec<double>=dd
l
q}"))
if (strcmp (enc2, "{Vec<double>=dd
" L "
q}"))
abort();
return 0;
...
...
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