Skip to content

Commit

Permalink
* config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
Browse files Browse the repository at this point in the history
	atomic_exchange<mode>): Input values can be immediates.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230606 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
nathan committed Nov 19, 2015
1 parent 8afc0d8 commit 89f6d4a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-11-19 Nathan Sidwell <nathanacm.org>

* config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
atomic_exchange<mode>): Input values can be immediates.

2015-11-19 Eric Botcazou <ebotcazou@adacore.com>

PR lto/61313
Expand Down
6 changes: 3 additions & 3 deletions gcc/config/nvptx/nvptx.md
Original file line number Diff line number Diff line change
Expand Up @@ -1494,8 +1494,8 @@
[(set (match_operand:SDIM 0 "nvptx_register_operand" "=R")
(unspec_volatile:SDIM
[(match_operand:SDIM 1 "memory_operand" "+m")
(match_operand:SDIM 2 "nvptx_register_operand" "R")
(match_operand:SDIM 3 "nvptx_register_operand" "R")
(match_operand:SDIM 2 "nvptx_nonmemory_operand" "Ri")
(match_operand:SDIM 3 "nvptx_nonmemory_operand" "Ri")
(match_operand:SI 4 "const_int_operand")]
UNSPECV_CAS))
(set (match_dup 1)
Expand All @@ -1510,7 +1510,7 @@
(match_operand:SI 3 "const_int_operand")] ;; model
UNSPECV_XCHG))
(set (match_dup 1)
(match_operand:SDIM 2 "nvptx_register_operand" "R"))] ;; input
(match_operand:SDIM 2 "nvptx_nonmemory_operand" "Ri"))] ;; input
""
"%.\\tatom%A1.exch.b%T0\\t%0, %1, %2;")

Expand Down

0 comments on commit 89f6d4a

Please sign in to comment.