annotate clang/test/CodeGen/unaligned-decl.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fms-extensions -emit-llvm < %s | FileCheck %s
anatofuz
parents:
diff changeset
2
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 // CHECK: @a1 ={{.*}} global i32 1, align 1
150
anatofuz
parents:
diff changeset
4 __unaligned int a1 = 1;
anatofuz
parents:
diff changeset
5
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6 // CHECK: @a2 ={{.*}} global i32 1, align 1
150
anatofuz
parents:
diff changeset
7 int __unaligned a2 = 1;
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // CHECK: @a3 = {{.*}} align 1
anatofuz
parents:
diff changeset
10 __unaligned int a3[10];
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // CHECK: @a4 = {{.*}} align 1
anatofuz
parents:
diff changeset
13 int __unaligned a4[10];
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // CHECK: @p1 = {{.*}} align 1
anatofuz
parents:
diff changeset
16 int *__unaligned p1;
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK: @p2 = {{.*}} align 8
anatofuz
parents:
diff changeset
19 int __unaligned *p2;
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // CHECK: @p3 = {{.*}} align 1
anatofuz
parents:
diff changeset
22 int __unaligned *__unaligned p3;