1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-aix \
3 ; RUN: --ppc-asm-full-reg-names -mcpu=pwr7 < %s | FileCheck %s
5 define dso_local i32 @test_builtin_ppc_popcntb_i32(i32 %a) local_unnamed_addr {
6 ; CHECK-LABEL: test_builtin_ppc_popcntb_i32:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: popcntb r3, r3
11 %popcntb = tail call i32 @llvm.ppc.popcntb.i32.i32(i32 %a)
14 declare i32 @llvm.ppc.popcntb.i32.i32(i32)
16 define dso_local void @test_builtin_ppc_eieio() {
17 ; CHECK-LABEL: test_builtin_ppc_eieio:
18 ; CHECK: # %bb.0: # %entry
19 ; CHECK-NEXT: ori r2, r2, 0
20 ; CHECK-NEXT: ori r2, r2, 0
24 call void @llvm.ppc.eieio()
27 declare void @llvm.ppc.eieio()
29 define dso_local void @test_builtin_ppc_iospace_eieio() {
30 ; CHECK-LABEL: test_builtin_ppc_iospace_eieio:
31 ; CHECK: # %bb.0: # %entry
32 ; CHECK-NEXT: ori r2, r2, 0
33 ; CHECK-NEXT: ori r2, r2, 0
37 call void @llvm.ppc.iospace.eieio()
40 declare void @llvm.ppc.iospace.eieio()
42 define dso_local void @test_builtin_ppc_iospace_lwsync() {
43 ; CHECK-LABEL: test_builtin_ppc_iospace_lwsync:
44 ; CHECK: # %bb.0: # %entry
48 call void @llvm.ppc.iospace.lwsync()
51 declare void @llvm.ppc.iospace.lwsync()
53 define dso_local void @test_builtin_ppc_iospace_sync() {
54 ; CHECK-LABEL: test_builtin_ppc_iospace_sync:
55 ; CHECK: # %bb.0: # %entry
59 call void @llvm.ppc.iospace.sync()
62 declare void @llvm.ppc.iospace.sync()