1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr8 < %s | FileCheck %s
4 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
5 ; RUN: -mcpu=pwr7 < %s | FileCheck %s
6 ; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-aix \
7 ; RUN: -mcpu=pwr7 < %s | FileCheck %s
8 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
9 ; RUN: -mcpu=pwr7 < %s | FileCheck %s
11 declare double @llvm.ppc.fcfid(double %a)
12 define dso_local double @test_fcfid(double %a) {
13 ; CHECK-LABEL: test_fcfid:
15 ; CHECK-NEXT: xscvsxddp 1, 1
17 %1 = call double @llvm.ppc.fcfid(double %a)
21 declare double @llvm.ppc.fcfud(double %a)
22 define dso_local double @test_fcfud(double %a) {
23 ; CHECK-LABEL: test_fcfud:
25 ; CHECK-NEXT: xscvuxddp 1, 1
27 %1 = call double @llvm.ppc.fcfud(double %a)
31 declare double @llvm.ppc.fctid(double %a)
32 define dso_local double @test_fctid(double %a) {
33 ; CHECK-LABEL: test_fctid:
35 ; CHECK-NEXT: fctid 1, 1
37 %1 = call double @llvm.ppc.fctid(double %a)
41 declare double @llvm.ppc.fctidz(double %a)
42 define dso_local double @test_fctidz(double %a) {
43 ; CHECK-LABEL: test_fctidz:
45 ; CHECK-NEXT: fctid 1, 1
47 %1 = call double @llvm.ppc.fctid(double %a)
51 declare double @llvm.ppc.fctiw(double %a)
52 define dso_local double @test_fctiw(double %a) {
53 ; CHECK-LABEL: test_fctiw:
55 ; CHECK-NEXT: fctid 1, 1
57 %1 = call double @llvm.ppc.fctid(double %a)
61 declare double @llvm.ppc.fctiwz(double %a)
62 define dso_local double @test_fctiwz(double %a) {
63 ; CHECK-LABEL: test_fctiwz:
65 ; CHECK-NEXT: fctid 1, 1
67 %1 = call double @llvm.ppc.fctid(double %a)
71 declare double @llvm.ppc.fctudz(double %a)
72 define dso_local double @test_fctudz(double %a) {
73 ; CHECK-LABEL: test_fctudz:
75 ; CHECK-NEXT: fctid 1, 1
77 %1 = call double @llvm.ppc.fctid(double %a)
81 declare double @llvm.ppc.fctuwz(double %a)
82 define dso_local double @test_fctuwz(double %a) {
83 ; CHECK-LABEL: test_fctuwz:
85 ; CHECK-NEXT: fctid 1, 1
87 %1 = call double @llvm.ppc.fctid(double %a)