brintos

brintos / llvm-project-archived public Read only

0
0
Text · 528 B · c19f90c Raw
26 lines · plain
1; RUN: llc -mtriple=hexagon --verify-machineinstrs < %s | FileCheck %s2 3; Generate code that is guaranteed to crash. At the moment, it's a4; misaligned load.5; CHECK-LABEL: f06; CHECK: memd(##3134984174)7 8target triple = "hexagon"9 10define i32 @f0() noreturn nounwind  {11entry:12  tail call void @llvm.trap()13  unreachable14}15 16; CHECK-LABEL: f117; CHECK: brkpt18define i32 @f1() noreturn nounwind {19entry:20  tail call void @llvm.debugtrap()21  unreachable22}23 24declare void @llvm.trap() nounwind25declare void @llvm.debugtrap() nounwind26