gallivm: support negation on 64-bit integers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 15 Sep 2016 10:17:56 +0000 (12:17 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 21 Sep 2016 08:24:50 +0000 (10:24 +0200)
This should be analogous to 32-bit integers.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi.c

index b3972610ffb8c35cc9eafe5c00702c0cfe4e536f..68ac69538293df87fbb17b272a4d6d7ac5a69215 100644 (file)
@@ -389,6 +389,10 @@ lp_build_emit_fetch(
       case TGSI_TYPE_UNSIGNED:
          res = lp_build_negate( &bld_base->int_bld, res );
          break;
+      case TGSI_TYPE_SIGNED64:
+      case TGSI_TYPE_UNSIGNED64:
+         res = lp_build_negate( &bld_base->int64_bld, res );
+         break;
       case TGSI_TYPE_VOID:
       default:
          assert(0);