annotate clang/test/CodeGen/xcore-abi.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: xcore-registered-target
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -triple xcore-unknown-unknown -fno-signed-char -fno-common -emit-llvm -o - -x c++ %s | FileCheck %s
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // CHECK: target triple = "xcore-unknown-unknown"
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // C++ constants are not placed into the ".cp.rodata" section.
anatofuz
parents:
diff changeset
9 // CHECK: @cgx = external constant i32
anatofuz
parents:
diff changeset
10 extern const int cgx;
anatofuz
parents:
diff changeset
11 int fcgx() { return cgx;}
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
12 // CHECK: @g1 ={{.*}} global i32 0, align 4
150
anatofuz
parents:
diff changeset
13 int g1;
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 // CHECK: @cg1 ={{.*}} constant i32 0, align 4
150
anatofuz
parents:
diff changeset
15 extern const int cg1 = 0;
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // Regression test for a bug in lib/CodeGen/CodeGenModule.cpp which called
anatofuz
parents:
diff changeset
18 // getLanguageLinkage() via a null 'VarDecl*'. This was an XCore specific
anatofuz
parents:
diff changeset
19 // conditional call to GV->setSection(".cp.rodata").
anatofuz
parents:
diff changeset
20 class C {
anatofuz
parents:
diff changeset
21 public:
anatofuz
parents:
diff changeset
22 ~C(){};
anatofuz
parents:
diff changeset
23 };
anatofuz
parents:
diff changeset
24 C c;
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // CHECK: "frame-pointer"="none"