]> granicus.if.org Git - libjpeg-turbo/commitdiff
ARMv7 SIMD: Fix clang compatibility (Part 2)
authormattsarett <msarett@google.com>
Tue, 3 May 2016 14:33:43 +0000 (10:33 -0400)
committerDRC <information@libjpeg-turbo.org>
Tue, 3 May 2016 18:08:58 +0000 (13:08 -0500)
GCC does support UAL syntax (strbeq) if the ".syntax unified" directive
is supplied.  This directive is supported by all versions of GCC and
clang going back to 2003, so it should not create any backward
compatibility issues.

Based on https://github.com/mattsarett/libjpeg-turbo/commit/1264349e2fa6f098178c37abfa7b059ad8b405a2

Closes #76

simd/jsimd_arm_neon.S

index 06b72402c71d2fd15b9bf343ad4533a81922e198..568768f7b8a8415e11234a8196e8a66e6ad92fdd 100644 (file)
@@ -35,6 +35,7 @@
 .arch armv7a
 .object_arch armv4
 .arm
+.syntax unified
 
 
 #define RESPECT_STRICT_ALIGNMENT 1
@@ -2457,11 +2458,7 @@ asm_function jsimd_h2v1_fancy_upsample_neon
     strb            \TMP, [\BUFFER, #1]!
     cmp             \TMP, #0xff
     /*it eq*/
-#if defined(__clang__)
     strbeq          \ZERO, [\BUFFER, #1]!
-#else
-    streqb          \ZERO, [\BUFFER, #1]!
-#endif
 .endm
 
 .macro put_bits PUT_BUFFER, PUT_BITS, CODE, SIZE