summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/trap1.ll
blob: 90755130e7c2204321c733bbb0fe9b1c5a09e9bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -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
}