summaryrefslogtreecommitdiff
path: root/gcc/config/alpha
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-12 10:25:55 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-12 10:25:55 +0000
commit2c80d17f9f92b91770bd0e3224d156b8c97dcf94 (patch)
tree550828fcdef5dafe2f05a5d4bcca040b9cfc4d85 /gcc/config/alpha
parentb126ad48b82fb94d4024b4b444267dd382f24774 (diff)
downloadgcc-2c80d17f9f92b91770bd0e3224d156b8c97dcf94.tar.gz
* config/alpha/sync.md (memory_barrier): Remove mem:BLK from operands.
Use Pmode for scratch reg. (*mb_internal): Use (match_dup 0) for unspec operand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142705 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r--gcc/config/alpha/sync.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/alpha/sync.md b/gcc/config/alpha/sync.md
index fe8301f344b..1c7ee45c588 100644
--- a/gcc/config/alpha/sync.md
+++ b/gcc/config/alpha/sync.md
@@ -28,17 +28,17 @@
(define_expand "memory_barrier"
- [(set (mem:BLK (match_dup 0))
- (unspec:BLK [(mem:BLK (match_dup 0))] UNSPEC_MB))]
+ [(set (match_dup 0)
+ (unspec:BLK [(match_dup 0)] UNSPEC_MB))]
""
{
- operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (DImode));
+ operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
MEM_VOLATILE_P (operands[0]) = 1;
})
(define_insn "*mb_internal"
[(set (match_operand:BLK 0 "" "")
- (unspec:BLK [(match_operand:BLK 1 "" "")] UNSPEC_MB))]
+ (unspec:BLK [(match_dup 0)] UNSPEC_MB))]
""
"mb"
[(set_attr "type" "mb")])