1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-n32:64" 3*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64le-unknown-linux-gnu" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker@_ZTIi = external constant i8* 6*9880d681SAndroid Build Coastguard Workerdeclare i8* @__cxa_allocate_exception(i64) 7*9880d681SAndroid Build Coastguard Workerdeclare void @__cxa_throw(i8*, i8*, i8*) 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard Workerdefine void @crsave() { 10*9880d681SAndroid Build Coastguard Workerentry: 11*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{cr2}"() 12*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{cr3}"() 13*9880d681SAndroid Build Coastguard Worker call void asm sideeffect "", "~{cr4}"() 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard Worker %exception = call i8* @__cxa_allocate_exception(i64 4) 16*9880d681SAndroid Build Coastguard Worker %0 = bitcast i8* %exception to i32* 17*9880d681SAndroid Build Coastguard Worker store i32 0, i32* %0 18*9880d681SAndroid Build Coastguard Worker call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) 19*9880d681SAndroid Build Coastguard Worker unreachable 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerreturn: ; No predecessors! 22*9880d681SAndroid Build Coastguard Worker ret void 23*9880d681SAndroid Build Coastguard Worker} 24*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @crsave 25*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset cr2, 8 26*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset cr3, 8 27*9880d681SAndroid Build Coastguard Worker; CHECK: .cfi_offset cr4, 8 28*9880d681SAndroid Build Coastguard Worker 29