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