aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/align.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/XCore/align.ll')
-rw-r--r--test/CodeGen/XCore/align.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/align.ll b/test/CodeGen/XCore/align.ll
new file mode 100644
index 0000000..2878a64
--- /dev/null
+++ b/test/CodeGen/XCore/align.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s -march=xcore | FileCheck %s
+
+; CHECK: .align 4
+; CHECK-LABEL: f:
+define void @f() nounwind {
+entry:
+ ret void
+}
+
+; CHECK: .align 2
+; CHECK-LABEL: g:
+define void @g() nounwind optsize {
+entry:
+ ret void
+}