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=pwr9 < %s | FileCheck %s
4 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
5 ; RUN: -mcpu=pwr9 < %s | FileCheck %s
6 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
7 ; RUN: -mcpu=pwr9 < %s | FileCheck %s
9 define dso_local i64 @extract_sig(double %d) {
10 ; CHECK-LABEL: extract_sig:
11 ; CHECK: # %bb.0: # %entry
12 ; CHECK-NEXT: xsxsigdp 3, 1
15 %0 = tail call i64 @llvm.ppc.extract.sig(double %d)
18 declare i64 @llvm.ppc.extract.sig(double)
20 define dso_local double @insert_exp(double %d, i64 %ull) {
21 ; CHECK-LABEL: insert_exp:
22 ; CHECK: # %bb.0: # %entry
23 ; CHECK-NEXT: mffprd 3, 1
24 ; CHECK-NEXT: xsiexpdp 1, 3, 4
27 %0 = tail call double @llvm.ppc.insert.exp(double %d, i64 %ull)
30 declare double @llvm.ppc.insert.exp(double, i64)
32 declare i64 @llvm.ppc.addex(i64, i64, i32 immarg)
33 define dso_local i64 @call_addex_0(i64 %a, i64 %b) {
34 ; CHECK-LABEL: call_addex_0:
35 ; CHECK: # %bb.0: # %entry
36 ; CHECK-NEXT: addex 3, 3, 4, 0
39 %0 = tail call i64 @llvm.ppc.addex(i64 %a, i64 %b, i32 0)