1 ; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 ; RUN: llc %s -o - -verify-machineinstrs \
3 ; RUN: -stop-after=finalize-isel -start-before=ppc-isel | FileCheck %s
5 target datalayout = "e-m:e-i64:64-n32:64-S128-v256:256:256-v512:512:512"
6 target triple = "powerpc64le-unknown-linux-gnu"
8 define void @strncpy_from_kernel_nofault_count() {
9 ; CHECK-LABEL: name: strncpy_from_kernel_nofault_count
11 ; CHECK-NEXT: successors: %bb.1(0x80000000), %bb.3(0x00000000)
13 ; CHECK-NEXT: INLINEASM_BR &"", 0 /* attdialect */, 131082 /* regdef:GPRC */, def %1, 13 /* imm */, %bb.3
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gprc = COPY %1
17 ; CHECK-NEXT: bb.1.asm.fallthrough:
18 ; CHECK-NEXT: successors: %bb.2(0x80000000)
20 ; CHECK-NEXT: STB [[COPY]], 0, $zero8 :: (store (s8) into `ptr null`)
22 ; CHECK-NEXT: bb.2.Efault:
23 ; CHECK-NEXT: BLR8 implicit $lr8, implicit $rm
25 ; CHECK-NEXT: bb.3.Efault.split (machine-block-address-taken, inlineasm-br-indirect-target):
26 ; CHECK-NEXT: successors: %bb.2(0x80000000)
28 ; CHECK-NEXT: STB %1, 0, $zero8 :: (store (s8) into `ptr null`)
31 %0 = callbr i8 asm "", "=r,!i"()
32 to label %asm.fallthrough [label %Efault.split]
35 store i8 %0, ptr null, align 1
42 %1 = call i8 @llvm.callbr.landingpad.i8(i8 %0)
43 store i8 %1, ptr null, align 1
46 declare i8 @llvm.callbr.landingpad.i8(i8)