brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 3a651fe Raw
29 lines · c
1// REQUIRES: arm-registered-target2// RUN: %clang -target arm-none-eabi -S -o - %s | FileCheck -check-prefix=CHECK-EABI %s3// RUN: %clang -target arm-none-eabi -S -meabi gnu -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s4// RUN: %clang -target arm-none-eabihf -S -o - %s | FileCheck -check-prefix=CHECK-EABI %s5// RUN: %clang -target arm-none-eabihf -S -meabi gnu -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s6// RUN: %clang -target arm-none-gnueabi -S -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s7// RUN: %clang -target arm-none-gnueabi -S -meabi 5 -o - %s | FileCheck -check-prefix=CHECK-EABI %s8// RUN: %clang -target arm-none-gnueabihf -S -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s9// RUN: %clang -target arm-none-gnueabihf -S -meabi 5 -o - %s | FileCheck -check-prefix=CHECK-EABI %s10// RUN: %clang -target arm-none-musleabi -S -o - %s \11// RUN:   | FileCheck -check-prefix=CHECK-GNUEABI %s12// RUN: %clang -target arm-none-musleabi -S -o - %s -meabi 5 \13// RUN:   | FileCheck -check-prefix=CHECK-EABI %s14// RUN: %clang -target arm-none-musleabihf -S -o - %s \15// RUN:   | FileCheck -check-prefix=CHECK-GNUEABI %s16// RUN: %clang -target arm-none-musleabihf -S -o - %s -meabi 5 \17// RUN:   | FileCheck -check-prefix=CHECK-EABI %s18 19struct my_s {20  unsigned long a[18];21};22 23// CHECK-LABEL: foo24// CHECK-EABI: bl __aeabi_memcpy425// CHECK-GNUEABI: bl memcpy26void foo(unsigned long *t) {27  *(struct my_s *)t = *((struct my_s *)(1UL));28}29