Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
07942738
There was an error fetching the commit references. Please try again later.
Commit
07942738
authored
4 years ago
by
ReinUsesLisp
Committed by
ameerj
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
glasm: Implement int64 add and subtract
parent
7fdf0d7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+2
-2
2 additions, 2 deletions
...shader_recompiler/backend/glasm/emit_glasm_instructions.h
src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
+4
-6
4 additions, 6 deletions
src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
with
6 additions
and
8 deletions
src/shader_recompiler/backend/glasm/emit_glasm_instructions.h
+
2
−
2
View file @
07942738
...
@@ -299,9 +299,9 @@ void EmitFPIsNan16(EmitContext& ctx, Register value);
...
@@ -299,9 +299,9 @@ void EmitFPIsNan16(EmitContext& ctx, Register value);
void
EmitFPIsNan32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarF32
value
);
void
EmitFPIsNan32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarF32
value
);
void
EmitFPIsNan64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarF64
value
);
void
EmitFPIsNan64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarF64
value
);
void
EmitIAdd32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitIAdd32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitIAdd64
(
EmitContext
&
ctx
,
Register
a
,
Register
b
);
void
EmitIAdd64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
a
,
Register
b
);
void
EmitISub32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitISub32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitISub64
(
EmitContext
&
ctx
,
Register
a
,
Register
b
);
void
EmitISub64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
a
,
Register
b
);
void
EmitIMul32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitIMul32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
);
void
EmitINeg32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
value
);
void
EmitINeg32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
value
);
void
EmitINeg64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
value
);
void
EmitINeg64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
value
);
...
...
This diff is collapsed.
Click to expand it.
src/shader_recompiler/backend/glasm/emit_glasm_integer.cpp
+
4
−
6
View file @
07942738
...
@@ -37,18 +37,16 @@ void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) {
...
@@ -37,18 +37,16 @@ void EmitIAdd32(EmitContext& ctx, IR::Inst& inst, ScalarS32 a, ScalarS32 b) {
}
}
}
}
void
EmitIAdd64
([[
maybe_unused
]]
EmitContext
&
ctx
,
[[
maybe_unused
]]
Register
a
,
void
EmitIAdd64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
a
,
Register
b
)
{
[[
maybe_unused
]]
Register
b
)
{
ctx
.
LongAdd
(
"ADD.S64 {}.x,{}.x,{}.x;"
,
inst
,
a
,
b
);
throw
NotImplementedException
(
"GLASM instruction"
);
}
}
void
EmitISub32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
)
{
void
EmitISub32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
)
{
ctx
.
Add
(
"SUB.S {}.x,{},{};"
,
inst
,
a
,
b
);
ctx
.
Add
(
"SUB.S {}.x,{},{};"
,
inst
,
a
,
b
);
}
}
void
EmitISub64
([[
maybe_unused
]]
EmitContext
&
ctx
,
[[
maybe_unused
]]
Register
a
,
void
EmitISub64
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
Register
a
,
Register
b
)
{
[[
maybe_unused
]]
Register
b
)
{
ctx
.
LongAdd
(
"SUB.S64 {}.x,{}.x,{}.x;"
,
inst
,
a
,
b
);
throw
NotImplementedException
(
"GLASM instruction"
);
}
}
void
EmitIMul32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
)
{
void
EmitIMul32
(
EmitContext
&
ctx
,
IR
::
Inst
&
inst
,
ScalarS32
a
,
ScalarS32
b
)
{
...
...
This diff is collapsed.
Click to expand it.
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