summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/align.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/RISCV/align.ll')
-rw-r--r--llvm/test/CodeGen/RISCV/align.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/RISCV/align.ll b/llvm/test/CodeGen/RISCV/align.ll
new file mode 100644
index 00000000000..f044f3bb156
--- /dev/null
+++ b/llvm/test/CodeGen/RISCV/align.ll
@@ -0,0 +1,13 @@
+; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
+; RUN: | FileCheck %s -check-prefix=RV32I
+; RUN: llc -mtriple=riscv32 -mattr=+c -verify-machineinstrs < %s \
+; RUN: | FileCheck %s -check-prefix=RV32C
+
+define void @foo() {
+;RV32I: .p2align 2
+;RV32I: foo:
+;RV32C: .p2align 1
+;RV32C: foo:
+entry:
+ ret void
+}
OpenPOWER on IntegriCloud