mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 11:26:06 +00:00

This adds Clang support for the ARM64 backend. There are definitely still some rough edges, so please bring up any issues you see with this patch. As with the LLVM commit though, we think it'll be more useful for merging with AArch64 from within the tree. llvm-svn: 205100
16 lines
598 B
C++
16 lines
598 B
C++
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s -target-abi darwinpcs | FileCheck %s --check-prefix=CHECK-DARWIN
|
|
|
|
void test_extensions(bool a, char b, short c) {}
|
|
// CHECK: define void @_Z15test_extensionsbcs(i1 %a, i8 %b, i16 %c)
|
|
// CHECK-DARWIN: define void @_Z15test_extensionsbcs(i1 zeroext %a, i8 signext %b, i16 signext %c)
|
|
|
|
struct Empty {};
|
|
void test_empty(Empty e) {}
|
|
// CHECK: define void @_Z10test_empty5Empty(i8
|
|
// CHECK-DARWIN: define void @_Z10test_empty5Empty()
|
|
|
|
struct HFA {
|
|
float a[3];
|
|
};
|