Skip to content

Commit d08921a

Browse files
author
Claudiu Zissulescu
committed
Fix prefetch: use ldb instead of prefetch (ld) instruction
1 parent 69389a2 commit d08921a

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

gcc/ChangeLog.ARC

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2013-03-26 Claudiu Zissulescu <[email protected]>
2+
3+
* config/arc/arc.md: Use ldb 0,[xxx] operation, instead of the
4+
prefetch (which is ld 0,[xxx]) asm macro. Hence, we avoid
5+
having missaligned exceptions when using prefetch
6+
instructions.
7+
* doc/install.texi: Typo fix.
8+
19
2013-03-17 Claudiu Zissulescu <[email protected]>
210

311
* config/arc/arc.md: Update how multiplication is done for ARC 600.

gcc/config/arc/arc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5479,7 +5479,7 @@
54795479
(match_operand:SI 1 "" "")
54805480
(match_operand:SI 2 "" ""))]
54815481
"TARGET_V2"
5482-
"prefetch [%0]"
5482+
"ldb 0,[%0]"
54835483
[(set_attr "type" "load")
54845484
(set_attr "length" "4")])
54855485

@@ -5489,7 +5489,7 @@
54895489
(match_operand:SI 2 "" "")
54905490
(match_operand:SI 3 "" ""))]
54915491
"TARGET_V2"
5492-
"prefetch [%0,%1]"
5492+
"ldb 0,[%0,%1]"
54935493
[(set_attr "type" "load")
54945494
(set_attr "length" "4,4,8")])
54955495

@@ -5498,7 +5498,7 @@
54985498
(match_operand:SI 1 "" "")
54995499
(match_operand:SI 2 "" ""))]
55005500
"TARGET_V2"
5501-
"prefetch [%0]"
5501+
"ldb 0,[%0]"
55025502
[(set_attr "type" "load")
55035503
(set_attr "length" "8")])
55045504

gcc/doc/invoke.texi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11374,7 +11374,7 @@ The multiply option is set to accept short vector extensions, and
1137411374
double MAC operations. The following instructions are additionaly
1137511375
enabled: MPYD, MPYDU, MACD, MACDU, VMPY2H, and VMPY2HU.
1137611376

11377-
@item 8
11377+
@item 9
1137811378
@itemx 64 bit
1137911379
The multiply option is set to accept 64 bit operations. The following
1138011380
instructions are additionaly enabled: QMPYH, QMPYHU, DMPYWH, DMPYWHU,

0 commit comments

Comments
 (0)