* config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
authorNathan Sidwell <nathan@acm.org>
Sat, 21 Nov 2015 14:01:05 +0000 (14:01 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Sat, 21 Nov 2015 14:01:05 +0000 (14:01 +0000)
From-SVN: r230706

gcc/ChangeLog
gcc/config/nvptx/nvptx.md

index 8e41f5b..ee27e99 100644 (file)
@@ -1,5 +1,7 @@
 2015-11-21  Nathan Sidwell  <nathan@acm.org>
 
+       * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
+
        * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
        leading blank line.
        (write_func_decl_from_insn): Likewise.
index aa9f5f6..c95d147 100644 (file)
   [(set (match_operand:SI 0 "nvptx_register_operand" "=R")
        (clz:SI (match_operand:SDIM 1 "nvptx_register_operand" "R")))]
   ""
-  "%.\\tclz.b%T0\\t%0, %1;")
+  "%.\\tclz.b%T1\\t%0, %1;")
 
 (define_expand "ctz<mode>2"
   [(set (match_operand:SI 0 "nvptx_register_operand" "")