Debian Codegraph @

llvm/test/CodeGen/PowerPC/ppc64le-crsave.ll

raw
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"
4
5 @_ZTIi = external constant ptr
6 declare ptr @__cxa_allocate_exception(i64)
7 declare void @__cxa_throw(ptr, ptr, ptr)
8
9 define void @crsave() {
10 entry:
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 %exception
17 call void @__cxa_throw(ptr %exception, ptr @_ZTIi, ptr null)
18 unreachable
19
20 return: ; No predecessors!
21 ret void
22 }
23 ; CHECK-LABEL: @crsave
24 ; CHECK: .cfi_offset cr2, 8
25 ; CHECK: .cfi_offset cr3, 8
26 ; CHECK: .cfi_offset cr4, 8
27