llvm.org GIT mirror llvm / 2edda52 test / CodeGen / ARM / undefined.ll
2edda52

Tree @2edda52 (Download .tar.gz)

undefined.ll @2edda52raw · history · blame

; 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