brintos

brintos / llvm-project-archived public Read only

0
0
Text · 773 B · 5332958 Raw
28 lines · plain
1; RUN: llc -verify-machineinstrs < %s | FileCheck %s2target datalayout = "e-m:e-i64:64-n32:64"3target triple = "powerpc64le-unknown-linux-gnu"4 5@_ZTIi = external constant ptr6declare ptr @__cxa_allocate_exception(i64)7declare void @__cxa_throw(ptr, ptr, ptr)8 9define void @crsave() {10entry:11  call void asm sideeffect "", "~{cr2}"()12  call void asm sideeffect "", "~{cr3}"()13  call void asm sideeffect "", "~{cr4}"()14 15  %exception = call ptr @__cxa_allocate_exception(i64 4)16  store i32 0, ptr %exception17  call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null)18  unreachable19 20return:                                           ; No predecessors!21  ret void22}23; CHECK-LABEL: @crsave24; CHECK: .cfi_offset cr2, 825; CHECK: .cfi_offset cr3, 826; CHECK: .cfi_offset cr4, 827 28