aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/trap1.ll
blob: bfcd7fed30d9bcf9bc592556778dcad63197e787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s -check-prefix=pic

declare void @llvm.trap()

; Function Attrs: nounwind optsize readnone
define i32 @main()  {
entry:
  call void @llvm.trap()
  unreachable
; pic: break 0
  ret i32 0
}