[PATCH] D34951: [AArch64] Add test case for preferred function alignment (NFC).
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 3 08:52:22 PDT 2017
fhahn created this revision.
Herald added subscribers: kristof.beyls, javed.absar, rengolin, aemerson.
It looks like there is no test case making sure we emit the preferred function alignment properly. @evandro @joelkevinjones it would be great if you could have a quick look to make sure I did not miss the test case.
https://reviews.llvm.org/D34951
Files:
test/CodeGen/AArch64/preferred-function-alignment.ll
Index: test/CodeGen/AArch64/preferred-function-alignment.ll
===================================================================
--- /dev/null
+++ test/CodeGen/AArch64/preferred-function-alignment.ll
@@ -0,0 +1,16 @@
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=generic < %s | FileCheck --check-prefix=ALIGN2 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=thunderx < %s | FileCheck --check-prefix=ALIGN3 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=thunderxt81 < %s | FileCheck --check-prefix=ALIGN3 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=thunderxt83 < %s | FileCheck --check-prefix=ALIGN3 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=thunderxt88 < %s | FileCheck --check-prefix=ALIGN3 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=thunderx2t99 < %s | FileCheck --check-prefix=ALIGN3 %s
+; RUN: llc -mtriple=aarch64-unknown-linux -mcpu=exynos-m1 < %s | FileCheck --check-prefix=ALIGN4 %s
+
+define void @test() {
+ ret void
+}
+
+; CHECK-LABEL: test
+; ALIGN2: .p2align 2
+; ALIGN3: .p2align 3
+; ALIGN4: .p2align 4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34951.105091.patch
Type: text/x-patch
Size: 1058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170703/06c55d2d/attachment.bin>
More information about the llvm-commits
mailing list