diff options
| author | patrick <> | 2017-01-04 22:54:05 +0000 |
|---|---|---|
| committer | patrick <> | 2017-01-04 22:54:05 +0000 |
| commit | c7b7f39784decb9050187614f2ac26005a5ebe83 (patch) | |
| tree | 761bc961f36f8e9b7de67b88ddecb98187a9ada8 /src | |
| parent | 8e167ed84212504677454a30ee471d653e35daef (diff) | |
| download | openbsd-c7b7f39784decb9050187614f2ac26005a5ebe83.tar.gz openbsd-c7b7f39784decb9050187614f2ac26005a5ebe83.tar.bz2 openbsd-c7b7f39784decb9050187614f2ac26005a5ebe83.zip | |
Convert ARM assembly to unified syntax. Clang demands it, binutils
supports it as long as it's marked as unified syntax.
ok bcook@ kettenis@
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/modes/asm/ghash-armv4.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/modes/asm/ghash-armv4.pl b/src/lib/libcrypto/modes/asm/ghash-armv4.pl index d91586ee29..4f8372d897 100644 --- a/src/lib/libcrypto/modes/asm/ghash-armv4.pl +++ b/src/lib/libcrypto/modes/asm/ghash-armv4.pl | |||
| @@ -110,6 +110,7 @@ $code=<<___; | |||
| 110 | #include "arm_arch.h" | 110 | #include "arm_arch.h" |
| 111 | 111 | ||
| 112 | .text | 112 | .text |
| 113 | .syntax unified | ||
| 113 | .code 32 | 114 | .code 32 |
| 114 | 115 | ||
| 115 | .type rem_4bit,%object | 116 | .type rem_4bit,%object |
| @@ -182,7 +183,7 @@ gcm_ghash_4bit: | |||
| 182 | eor $Zlh,$Zlh,$Zhl,lsl#28 | 183 | eor $Zlh,$Zlh,$Zhl,lsl#28 |
| 183 | ldrh $Tll,[sp,$nlo] @ rem_4bit[rem] | 184 | ldrh $Tll,[sp,$nlo] @ rem_4bit[rem] |
| 184 | eor $Zhl,$Thl,$Zhl,lsr#4 | 185 | eor $Zhl,$Thl,$Zhl,lsr#4 |
| 185 | ldrplb $nlo,[$inp,$cnt] | 186 | ldrbpl $nlo,[$inp,$cnt] |
| 186 | eor $Zhl,$Zhl,$Zhh,lsl#28 | 187 | eor $Zhl,$Zhl,$Zhh,lsl#28 |
| 187 | eor $Zhh,$Thh,$Zhh,lsr#4 | 188 | eor $Zhh,$Thh,$Zhh,lsr#4 |
| 188 | 189 | ||
| @@ -192,7 +193,7 @@ gcm_ghash_4bit: | |||
| 192 | add $nhi,$nhi,$nhi | 193 | add $nhi,$nhi,$nhi |
| 193 | ldmia $Thh,{$Tll-$Thh} @ load Htbl[nhi] | 194 | ldmia $Thh,{$Tll-$Thh} @ load Htbl[nhi] |
| 194 | eor $Zll,$Tll,$Zll,lsr#4 | 195 | eor $Zll,$Tll,$Zll,lsr#4 |
| 195 | ldrplb $Tll,[$Xi,$cnt] | 196 | ldrbpl $Tll,[$Xi,$cnt] |
| 196 | eor $Zll,$Zll,$Zlh,lsl#28 | 197 | eor $Zll,$Zll,$Zlh,lsl#28 |
| 197 | eor $Zlh,$Tlh,$Zlh,lsr#4 | 198 | eor $Zlh,$Tlh,$Zlh,lsr#4 |
| 198 | ldrh $Tlh,[sp,$nhi] | 199 | ldrh $Tlh,[sp,$nhi] |
| @@ -210,7 +211,7 @@ gcm_ghash_4bit: | |||
| 210 | add $inp,$inp,#16 | 211 | add $inp,$inp,#16 |
| 211 | mov $nhi,$Zll | 212 | mov $nhi,$Zll |
| 212 | ___ | 213 | ___ |
| 213 | &Zsmash("cmp\t$inp,$len","ldrneb\t$nlo,[$inp,#15]"); | 214 | &Zsmash("cmp\t$inp,$len","ldrbne\t$nlo,[$inp,#15]"); |
| 214 | $code.=<<___; | 215 | $code.=<<___; |
| 215 | bne .Louter | 216 | bne .Louter |
| 216 | 217 | ||
| @@ -268,7 +269,7 @@ gcm_gmult_4bit: | |||
| 268 | eor $Zlh,$Zlh,$Zhl,lsl#28 | 269 | eor $Zlh,$Zlh,$Zhl,lsl#28 |
| 269 | ldrh $Tll,[$rem_4bit,$nlo] @ rem_4bit[rem] | 270 | ldrh $Tll,[$rem_4bit,$nlo] @ rem_4bit[rem] |
| 270 | eor $Zhl,$Thl,$Zhl,lsr#4 | 271 | eor $Zhl,$Thl,$Zhl,lsr#4 |
| 271 | ldrplb $nlo,[$Xi,$cnt] | 272 | ldrbpl $nlo,[$Xi,$cnt] |
| 272 | eor $Zhl,$Zhl,$Zhh,lsl#28 | 273 | eor $Zhl,$Zhl,$Zhh,lsl#28 |
| 273 | eor $Zhh,$Thh,$Zhh,lsr#4 | 274 | eor $Zhh,$Thh,$Zhh,lsr#4 |
| 274 | 275 | ||
