Unified · Split
| @@ -1,4 +1,16 @@ | ||
| 1 | 1 | language: c |
| 2 | +addons: | |
| 3 | + apt: | |
| 4 | + packages: | |
| 5 | + - libc6-dev-i386 | |
| 6 | + - gcc-arm-none-eabi | |
| 7 | + - libnewlib-arm-none-eabi | |
| 8 | + - gcc-4.8-multilib | |
| 9 | + - gcc-4.8-aarch64-linux-gnu | |
| 10 | + - gcc-aarch64-linux-gnu | |
| 11 | + - libc6-arm64-cross | |
| 12 | + - libc6-dev-arm64-cross | |
| 13 | + - qemu | |
| 2 | 14 | |
| 3 | 15 | os: |
| 4 | 16 | - linux |
| @@ -6,9 +18,6 @@ os: · 1 unmodified line | ||
| 6 | 18 | compiler: |
| 7 | 19 | - gcc |
| 8 | 20 | |
| 9 | −before_install: | |
| 10 | − - if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y libc6-dev-i386 g++-multilib gcc-arm-none-eabi qemu; fi | |
| 11 | − | |
| 12 | 21 | script: |
| 13 | 22 | - scripts/build.sh |
| 14 | 23 | |
| @@ -155,7 +155,7 @@ test_nosimd: · 154 unmodified lines | ||
| 155 | 155 | return 0; |
| 156 | 156 | #endif |
| 157 | 157 | } |
| 158 | −#elif defined(__ARM_NEON) | |
| 158 | +#elif defined(__ARM_NEON) || defined(__aarch64__) | |
| 159 | 159 | # include <arm_neon.h> |
| 160 | 160 | # define HAVE_SIMD 1 |
| 161 | 161 | # define VSTORE vst1q_f32 |
| @@ -116,7 +116,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) · 115 unmodified lines | ||
| 116 | 116 | } |
| 117 | 117 | #else |
| 118 | 118 | |
| 119 | −#ifdef __arm__ | |
| 119 | +#if defined(__arm__) || defined(__aarch64__) | |
| 120 | 120 | int main2(int argc, char *argv[]); |
| 121 | 121 | int main2(int argc, char *argv[]) |
| 122 | 122 | #else |
| @@ -172,7 +172,7 @@ int main(int argc, char *argv[]) · 49 unmodified lines | ||
| 172 | 172 | return 0; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | −#ifdef __arm__ | |
| 175 | +#if defined(__arm__) || defined(__aarch64__) | |
| 176 | 176 | static const char *g_files[] = { |
| 177 | 177 | "vectors/ILL2_center2.bit", |
| 178 | 178 | "vectors/ILL2_dual.bit", |
| @@ -32,6 +32,11 @@ arm-none-eabi-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-a · 31 unmodified lines | ||
| 32 | 32 | -ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c --specs=rdimon.specs -lm |
| 33 | 33 | qemu-arm ./minimp3_arm |
| 34 | 34 | |
| 35 | +aarch64-linux-gnu-gcc -O2 -std=c89 -Wall -Wextra -Wmissing-prototypes -Werror -fno-asynchronous-unwind-tables -fno-stack-protector \ | |
| 36 | +-static -march=armv8-a \ | |
| 37 | +-ffunction-sections -fdata-sections -Wl,--gc-sections -o minimp3_arm minimp3_test.c -lm | |
| 38 | +qemu-aarch64 ./minimp3_arm | |
| 39 | + | |
| 35 | 40 | if [ ! "$TRAVIS" = "true" ]; then |
| 36 | 41 | rm emmintrin.h.gcov minimp3_arm minimp3_test.gcda minimp3_test.gcno minimp3_test.c.gcov xmmintrin.h.gcov |
| 37 | 42 | fi |