diff options
Diffstat (limited to 'test/CodeGen/arm-eabi.c')
-rw-r--r-- | test/CodeGen/arm-eabi.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/arm-eabi.c b/test/CodeGen/arm-eabi.c new file mode 100644 index 0000000..0dc04f5 --- /dev/null +++ b/test/CodeGen/arm-eabi.c @@ -0,0 +1,20 @@ +// REQUIRES: arm-registered-target +// RUN: %clang -target arm-none-eabi -S -o - %s | FileCheck -check-prefix=CHECK-EABI %s +// RUN: %clang -target arm-none-eabi -S -meabi gnu -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s +// RUN: %clang -target arm-none-eabihf -S -o - %s | FileCheck -check-prefix=CHECK-EABI %s +// RUN: %clang -target arm-none-eabihf -S -meabi gnu -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s +// RUN: %clang -target arm-none-gnueabi -S -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s +// RUN: %clang -target arm-none-gnueabi -S -meabi 5 -o - %s | FileCheck -check-prefix=CHECK-EABI %s +// RUN: %clang -target arm-none-gnueabihf -S -o - %s | FileCheck -check-prefix=CHECK-GNUEABI %s +// RUN: %clang -target arm-none-gnueabihf -S -meabi 5 -o - %s | FileCheck -check-prefix=CHECK-EABI %s + +struct my_s { + unsigned long a[18]; +}; + +// CHECK-LABEL: foo +// CHECK-EABI: bl __aeabi_memcpy4 +// CHECK-GNUEABI: bl memcpy +void foo(unsigned long *t) { + *(struct my_s *)t = *((struct my_s *)(1UL)); +} |