summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/undefined.ll
blob: 86422fb54412baf4bc12305ac713e5653414b005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -mtriple armv7-eabi -o - %s | FileCheck %s
; RUN: llc -mtriple thumbv6m-eabi -o - %s | FileCheck %s
; RUN: llc -mtriple thumbv7-eabi -o - %s | FileCheck %s

declare void @llvm.arm.undefined(i32) nounwind

define void @undefined_trap() {
entry:
  tail call void @llvm.arm.undefined(i32 254)
  ret void
}

; CHECK-LABEL: undefined_trap
; CHECK: udf #254