Skip to content

Commit

Permalink
gcc/
Browse files Browse the repository at this point in the history
	* config/rs6000/htm.md (tabort.): Restrict the source operand to
	using a base register.

gcc/testsuite/
	* gcc.target/powerpc/htm-tabort-no-r0.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226532 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
bergner committed Aug 3, 2015
1 parent 17c0b84 commit 8ad9537
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2015-08-03 Peter Bergner <bergner@vnet.ibm.com>

* config/rs6000/htm.md (tabort.): Restrict the source operand to
using a base register.

2015-08-03 David Malcolm <dmalcolm@redhat.com>

* main.c (main): Pass in NULL for toplev's external_timer.
Expand Down
2 changes: 1 addition & 1 deletion gcc/config/rs6000/htm.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

(define_insn "tabort"
[(set (match_operand:CC 1 "cc_reg_operand" "=x")
(unspec_volatile:CC [(match_operand:SI 0 "gpc_reg_operand" "r")]
(unspec_volatile:CC [(match_operand:SI 0 "base_reg_operand" "b")]
UNSPECV_HTM_TABORT))]
"TARGET_HTM"
"tabort. %0"
Expand Down
4 changes: 4 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2015-08-03 Peter Bergner <bergner@vnet.ibm.com>

* gcc.target/powerpc/htm-tabort-no-r0.c: New test.

2015-08-03 David Malcolm <dmalcolm@redhat.com>

* jit.dg/test-benchmark.c (test_jit): Add param "timer" and use
Expand Down
12 changes: 12 additions & 0 deletions gcc/testsuite/gcc.target/powerpc/htm-tabort-no-r0.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_htm_ok } */
/* { dg-options "-O2 -mhtm -ffixed-r3 -ffixed-r4 -ffixed-r5 -ffixed-r6 -ffixed-r7 -ffixed-r8 -ffixed-r9 -ffixed-r10 -ffixed-r11 -ffixed-r12" } */

/* { dg-final { scan-assembler-not "tabort\\.\[ \t\]0" } } */

int
foo (void)
{
return __builtin_tabort (10);
}

0 comments on commit 8ad9537

Please sign in to comment.