diff options
author | Helge Deller <deller@gmx.de> | 2009-01-18 12:13:53 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@treachery.i.cabal.ca> | 2009-03-13 01:18:27 -0400 |
commit | 2cfeb9a6755d4d7be1026422b6aced48e3bad492 (patch) | |
tree | 0ca39b8fa71b174bfc907d1b259e1470c45e0ccd /arch/parisc/include/asm | |
parent | 7f384ce780c6091968fc848b14f17b45cb849e14 (diff) |
parisc: add braces around arguments in assembler macros
Add braces around the macro arguments, else for example
"shl %r1, 5-3, %r2" would not expand to what you would assume.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm')
-rw-r--r-- | arch/parisc/include/asm/assembly.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/parisc/include/asm/assembly.h b/arch/parisc/include/asm/assembly.h index ffb208840ecc..ab7cc373ee56 100644 --- a/arch/parisc/include/asm/assembly.h +++ b/arch/parisc/include/asm/assembly.h | |||
@@ -129,27 +129,27 @@ | |||
129 | 129 | ||
130 | /* Shift Left - note the r and t can NOT be the same! */ | 130 | /* Shift Left - note the r and t can NOT be the same! */ |
131 | .macro shl r, sa, t | 131 | .macro shl r, sa, t |
132 | dep,z \r, 31-\sa, 32-\sa, \t | 132 | dep,z \r, 31-(\sa), 32-(\sa), \t |
133 | .endm | 133 | .endm |
134 | 134 | ||
135 | /* The PA 2.0 shift left */ | 135 | /* The PA 2.0 shift left */ |
136 | .macro shlw r, sa, t | 136 | .macro shlw r, sa, t |
137 | depw,z \r, 31-\sa, 32-\sa, \t | 137 | depw,z \r, 31-(\sa), 32-(\sa), \t |
138 | .endm | 138 | .endm |
139 | 139 | ||
140 | /* And the PA 2.0W shift left */ | 140 | /* And the PA 2.0W shift left */ |
141 | .macro shld r, sa, t | 141 | .macro shld r, sa, t |
142 | depd,z \r, 63-\sa, 64-\sa, \t | 142 | depd,z \r, 63-(\sa), 64-(\sa), \t |
143 | .endm | 143 | .endm |
144 | 144 | ||
145 | /* Shift Right - note the r and t can NOT be the same! */ | 145 | /* Shift Right - note the r and t can NOT be the same! */ |
146 | .macro shr r, sa, t | 146 | .macro shr r, sa, t |
147 | extru \r, 31-\sa, 32-\sa, \t | 147 | extru \r, 31-(\sa), 32-(\sa), \t |
148 | .endm | 148 | .endm |
149 | 149 | ||
150 | /* pa20w version of shift right */ | 150 | /* pa20w version of shift right */ |
151 | .macro shrd r, sa, t | 151 | .macro shrd r, sa, t |
152 | extrd,u \r, 63-\sa, 64-\sa, \t | 152 | extrd,u \r, 63-(\sa), 64-(\sa), \t |
153 | .endm | 153 | .endm |
154 | 154 | ||
155 | /* load 32-bit 'value' into 'reg' compensating for the ldil | 155 | /* load 32-bit 'value' into 'reg' compensating for the ldil |