summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Hexagon/align_Os.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Hexagon/align_Os.ll')
-rw-r--r--llvm/test/CodeGen/Hexagon/align_Os.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Hexagon/align_Os.ll b/llvm/test/CodeGen/Hexagon/align_Os.ll
new file mode 100644
index 00000000000..aa9368ce64a
--- /dev/null
+++ b/llvm/test/CodeGen/Hexagon/align_Os.ll
@@ -0,0 +1,19 @@
+; RUN: llc -march=hexagon < %s | FileCheck %s
+; CHECK: {{.balign 4|.p2align 2}}
+; CHECK: {{.balign 4|.p2align 2}}
+
+target triple = "hexagon"
+
+; Function Attrs: nounwind optsize readnone
+define i32 @f0() #0 section ".mysection.main" {
+b0:
+ ret i32 0
+}
+
+; Function Attrs: nounwind optsize readnone
+define i32 @f1() #0 section ".mysection.anothermain" {
+b0:
+ ret i32 0
+}
+
+attributes #0 = { nounwind optsize readnone "target-cpu"="hexagonv55" }
OpenPOWER on IntegriCloud