Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / align-loops.c
blob7744b4ab0f24ec657bf130c85758b217697a8520
1 // REQUIRES: x86-registered-target
2 /// Check asm because we use llvm::TargetOptions.
4 // RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=8 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_8
5 // RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=32 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_32
7 // CHECK-LABEL: foo:
8 // CHECK_8: .p2align 3, 0x90
9 // CHECK_32: .p2align 5, 0x90
11 void bar(void);
12 void foo(void) {
13 for (int i = 0; i < 64; ++i)
14 bar();