llvm-project/clang/test/CodeGen/align-loops.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
478 B
C
Raw Normal View History

// REQUIRES: x86-registered-target
/// Check asm because we use llvm::TargetOptions.
// RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=8 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_8
// RUN: %clang_cc1 -triple=x86_64 -S %s -falign-loops=32 -O -o - | FileCheck %s --check-prefixes=CHECK,CHECK_32
// CHECK-LABEL: foo:
// CHECK_8: .p2align 3, 0x90
// CHECK_32: .p2align 5, 0x90
void bar(void);
void foo(void) {
for (int i = 0; i < 64; ++i)
bar();
}