Debian Codegraph @

clang/test/CIR/emit-actions.cpp

raw
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -S %s -o - | FileCheck %s -check-prefix=ASM
2
3 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm-bc %s -o %t.bc
4 // RUN: llvm-dis %t.bc -o - | FileCheck %s -check-prefix=BC
5
6 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-obj %s -o %t.o
7 // RUN: llvm-objdump -t %t.o | FileCheck %s -check-prefix=OBJ
8
9 // TODO: Make this test target-independent
10 // REQUIRES: x86-registered-target
11
12 int x = 1;
13
14 // BC: @x = {{(dso_local )?}}global i32 1
15
16 // ASM: x:
17 // ASM: .long 1
18 // ASM: .size x, 4
19
20 // OBJ: .data
21 // OBJ-SAME: x