Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
fb644cda
Commit
fb644cda
authored
Mar 23, 2017
by
qinsoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wip] fix a bug on branch2 on a value
parent
28b7d94e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/compiler/backend/arch/x86_64/inst_sel.rs
src/compiler/backend/arch/x86_64/inst_sel.rs
+5
-1
No files found.
src/compiler/backend/arch/x86_64/inst_sel.rs
View file @
fb644cda
...
...
@@ -292,7 +292,11 @@ impl <'a> InstructionSelection {
// emit: cmp cond_reg 1
self
.backend
.emit_cmp_imm_r
(
1
,
&
cond_reg
);
// emit: je #branch_dest
self
.backend
.emit_je
(
branch_target
);
if
branch_if_true
{
self
.backend
.emit_je
(
branch_target
);
}
else
{
self
.backend
.emit_jne
(
branch_target
);
}
}
else
{
unimplemented!
();
}
...
...
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