summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/RISCV/align.ll
blob: f044f3bb156a41080735b6672e88214aae1c1632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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