1 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s \
2 ; RUN: -verify-machineinstrs -ppc-asm-full-reg-names \
3 ; RUN: -ppc-vsr-nums-as-vr | FileCheck %s --check-prefix=CHECK-S
4 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu < %s \
5 ; RUN: -verify-machineinstrs -ppc-asm-full-reg-names \
6 ; RUN: -ppc-vsr-nums-as-vr --filetype=obj | \
7 ; RUN: llvm-objdump --mcpu=future -dr - | FileCheck %s --check-prefix=CHECK-O
9 ; Function Attrs: nounwind
10 define void @dcbf_test(ptr %a) {
12 tail call void @llvm.ppc.dcbf(ptr %a)
13 ; CHECK-S-LABEL: @dcbf_test
16 ; CHECK-O-LABEL: <dcbf_test>:
17 ; CHECK-O: 0: ac 18 00 7c dcbf 0, 3
18 ; CHECK-O-NEXT: 4: 20 00 80 4e blr
22 declare void @llvm.ppc.dcbf(ptr)
24 ; Function Attrs: nounwind
25 define void @dcbfl_test(ptr %a) {
27 tail call void @llvm.ppc.dcbfl(ptr %a)
28 ; CHECK-S-LABEL: @dcbfl_test
29 ; CHECK-S: dcbfl 0, r3
31 ; CHECK-O-LABEL: <dcbfl_test>:
32 ; CHECK-O: 20: ac 18 20 7c dcbfl 0, 3
33 ; CHECK-O-NEXT: 24: 20 00 80 4e blr
37 declare void @llvm.ppc.dcbfl(ptr)
39 ; Function Attrs: nounwind
40 define void @dcbflp_test(ptr %a) {
42 %add.a = getelementptr inbounds i8, ptr %a, i64 3
43 tail call void @llvm.ppc.dcbflp(ptr %add.a)
44 ; CHECK-S-LABEL: @dcbflp_test
45 ; CHECK-S: addi r3, r3, 3
46 ; CHECK-S-NEXT: dcbflp 0, r3
48 ; CHECK-O-LABEL: <dcbflp_test>:
49 ; CHECK-O: 40: 03 00 63 38 addi 3, 3, 3
50 ; CHECK-O-NEXT: 44: ac 18 60 7c dcbflp 0, 3
51 ; CHECK-O-NEXT: 48: 20 00 80 4e blr
55 declare void @llvm.ppc.dcbflp(ptr)