summaryrefslogtreecommitdiff
path: root/backend/src/ir/instruction.hxx
diff options
context:
space:
mode:
authorBenjamin Segovia <benjamin.segovia@intel.com>2012-11-02 17:55:20 -0700
committerBenjamin Segovia <benjamin.segovia@intel.com>2012-11-02 17:55:20 -0700
commit4c5a0cfb128318adfdbc6d87cf77689584ee5bfb (patch)
tree7d68c78d5564a94abf145a86764a9413612a93d3 /backend/src/ir/instruction.hxx
parente4e590258d0d226fbf3193ef8a44c21379a8f61c (diff)
Made compiler_clod pass. The image is now properly computed.
I basically added a bunch of new intrinsics and cleaned a bit the ocl std library. Well, it is not going to be compliant for a while with the spec (mostly due to precision issues and the way denormals and nan are handled). But, it should do the job for now. Started to add a more complex test called "ribbon"
Diffstat (limited to 'backend/src/ir/instruction.hxx')
-rw-r--r--backend/src/ir/instruction.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/src/ir/instruction.hxx b/backend/src/ir/instruction.hxx
index 6704acc3..4f154b0b 100644
--- a/backend/src/ir/instruction.hxx
+++ b/backend/src/ir/instruction.hxx
@@ -32,6 +32,11 @@ DECL_INSN(LOG, UnaryInstruction)
DECL_INSN(SQR, UnaryInstruction)
DECL_INSN(RSQ, UnaryInstruction)
DECL_INSN(RCP, UnaryInstruction)
+DECL_INSN(ABS, UnaryInstruction)
+DECL_INSN(RNDD, UnaryInstruction)
+DECL_INSN(RNDE, UnaryInstruction)
+DECL_INSN(RNDU, UnaryInstruction)
+DECL_INSN(RNDZ, UnaryInstruction)
DECL_INSN(POW, BinaryInstruction)
DECL_INSN(MUL, BinaryInstruction)
DECL_INSN(ADD, BinaryInstruction)