Debian Codegraph @

clang/test/CodeGenCXX/int64_uint64.cpp

raw
1 // RUN: %clang_cc1 -triple arm-linux-guneabi \
2 // RUN: -target-cpu cortex-a8 \
3 // RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-ARM %s
4
5 // RUN: %clang_cc1 -triple arm64-linux-gnueabi \
6 // RUN: -target-feature +neon \
7 // RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-AARCH64 %s
8
9 // RUN: %clang_cc1 -triple arm-linux-guneabi \
10 // RUN: -target-cpu cortex-a8 -fexperimental-new-constant-interpreter \
11 // RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-ARM %s
12
13 // RUN: %clang_cc1 -triple arm64-linux-gnueabi \
14 // RUN: -target-feature +neon -fexperimental-new-constant-interpreter \
15 // RUN: -emit-llvm -w -O1 -o - %s | FileCheck --check-prefix=CHECK-AARCH64 %s
16
17 // REQUIRES: aarch64-registered-target || arm-registered-target
18
19 // Test if int64_t and uint64_t can be correctly mangled.
20
21 #include "arm_neon.h"
22 // CHECK-ARM: f1x(
23 // CHECK-AARCH64: f1l(
24 void f1(int64_t a) {}
25 // CHECK-ARM: f2y(
26 // CHECK-AARCH64: f2m(
27 void f2(uint64_t a) {}
28 // CHECK-ARM: f3Px(
29 // CHECK-AARCH64: f3Pl(
30 void f3(int64_t *ptr) {}
31 // CHECK-ARM: f4Py(
32 // CHECK-AARCH64: f4Pm(
33 void f4(uint64_t *ptr) {}