[Mesa-dev] [RFC 1/5] nir: add unordered opcode variants of float comparisons

Timothy Arceri tarceri at itsqueeze.com
Wed Feb 14 06:29:17 UTC 2018


This will enable the nir->llvm translation to work correctly.
---
 src/compiler/nir/nir_opcodes.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compiler/nir/nir_opcodes.py b/src/compiler/nir/nir_opcodes.py
index 278562b2bd..61c004c6f8 100644
--- a/src/compiler/nir/nir_opcodes.py
+++ b/src/compiler/nir/nir_opcodes.py
@@ -445,6 +445,10 @@ binop_compare("flt", tfloat, "", "src0 < src1")
 binop_compare("fge", tfloat, "", "src0 >= src1")
 binop_compare("feq", tfloat, commutative, "src0 == src1")
 binop_compare("fne", tfloat, commutative, "src0 != src1")
+binop_compare("uflt", tfloat, "", "src0 < src1")
+binop_compare("ufge", tfloat, "", "src0 >= src1")
+binop_compare("ufeq", tfloat, commutative, "src0 == src1")
+binop_compare("ufne", tfloat, commutative, "src0 != src1")
 binop_compare("ilt", tint, "", "src0 < src1")
 binop_compare("ige", tint, "", "src0 >= src1")
 binop_compare("ieq", tint, commutative, "src0 == src1")
-- 
2.14.3



More information about the mesa-dev mailing list