1 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
2 target datalayout = "e-m:e-i64:64-n32:64"
3 target triple = "powerpc64le-unknown-linux-gnu"
5 @_ZTIi = external constant ptr
6 declare ptr @__cxa_allocate_exception(i64)
7 declare void @__cxa_throw(ptr, ptr, ptr)
9 define void @crsave() {
11 call void asm sideeffect "", "~{cr2}"()
12 call void asm sideeffect "", "~{cr3}"()
13 call void asm sideeffect "", "~{cr4}"()
15 %exception = call ptr @__cxa_allocate_exception(i64 4)
16 store i32 0, ptr %exception
17 call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null)
20 return: ; No predecessors!
23 ; CHECK-LABEL: @crsave
24 ; CHECK: .cfi_offset cr2, 8
25 ; CHECK: .cfi_offset cr3, 8
26 ; CHECK: .cfi_offset cr4, 8