Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: src/IceTargetLoweringX8632.h

Issue 389653002: Lower vector floating point arithmetic operations. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Avoid _movp() trickery Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index b2871c024a0aad67feb35500a89a9c40777e2c4f..001f4e62aae2e53227ef325459b164c0922f6e23 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -148,6 +148,9 @@ protected:
void _add(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Add::create(Func, Dest, Src0));
}
+ void _addps(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Addps::create(Func, Dest, Src0));
+ }
void _addss(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Addss::create(Func, Dest, Src0));
}
@@ -180,6 +183,9 @@ protected:
void _div(Variable *Dest, Operand *Src0, Operand *Src1) {
Context.insert(InstX8632Div::create(Func, Dest, Src0, Src1));
}
+ void _divps(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Divps::create(Func, Dest, Src0));
+ }
void _divss(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Divss::create(Func, Dest, Src0));
}
@@ -220,6 +226,9 @@ protected:
void _mul(Variable *Dest, Variable *Src0, Operand *Src1) {
Context.insert(InstX8632Mul::create(Func, Dest, Src0, Src1));
}
+ void _mulps(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Mulps::create(Func, Dest, Src0));
+ }
void _mulss(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Mulss::create(Func, Dest, Src0));
}
@@ -232,6 +241,9 @@ protected:
void _push(Operand *Src0, bool SuppressStackAdjustment = false) {
Context.insert(InstX8632Push::create(Func, Src0, SuppressStackAdjustment));
}
+ void _pxor(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Pxor::create(Func, Dest, Src0));
+ }
void _ret(Variable *Src0 = NULL) {
Context.insert(InstX8632Ret::create(Func, Src0));
}
@@ -265,6 +277,9 @@ protected:
void _sub(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Sub::create(Func, Dest, Src0));
}
+ void _subps(Variable *Dest, Operand *Src0) {
+ Context.insert(InstX8632Subps::create(Func, Dest, Src0));
+ }
void _subss(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Subss::create(Func, Dest, Src0));
}
@@ -284,9 +299,6 @@ protected:
void _xor(Variable *Dest, Operand *Src0) {
Context.insert(InstX8632Xor::create(Func, Dest, Src0));
}
- void _pxor(Variable *Dest, Operand *Src0) {
- Context.insert(InstX8632Pxor::create(Func, Dest, Src0));
- }
bool IsEbpBasedFrame;
size_t FrameSizeLocals;

Powered by Google App Engine
This is Rietveld 408576698