* [ptx] fix CLZ
@ 2015-11-21 14:07 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2015-11-21 14:07 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 179 bytes --]
This patch fixes CLZ. It always returns SImode, we should look at the input
operand to determine the type. Fixes cc.c-torture/execute/builtin-bitops-1.c
committed.
nathan
[-- Attachment #2: trunk-ptx-clz.patch --]
[-- Type: text/x-patch, Size: 592 bytes --]
2015-11-21 Nathan Sidwell <nathan@acm.org>
* config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
Index: config/nvptx/nvptx.md
===================================================================
--- config/nvptx/nvptx.md (revision 230704)
+++ config/nvptx/nvptx.md (working copy)
@@ -731,7 +731,7 @@
[(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" "")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-21 14:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-21 14:07 [ptx] fix CLZ Nathan Sidwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).