brintos

brintos / llvm-project-archived public Read only

0
0
Text · 682 B · ef0e2da Raw
16 lines · cpp
1// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s | FileCheck %s2// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s -target-abi darwinpcs | FileCheck %s --check-prefix=CHECK-DARWIN3 4void test_extensions(bool a, char b, short c) {}5// CHECK: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef %a, i8 noundef %b, i16 noundef %c)6// CHECK-DARWIN: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef zeroext %a, i8 noundef signext %b, i16 noundef signext %c)7 8struct Empty {};9void test_empty(Empty e) {}10// CHECK: define{{.*}} void @_Z10test_empty5Empty(i64 %e.coerce)11// CHECK-DARWIN: define{{.*}} void @_Z10test_empty5Empty()12 13struct HFA {14  float a[3];15};16