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
25 ; CHECK-NEXT: # kill: def $f1 killed $f1 killed $vsl1
28 %0 = tail call double @llvm.ppc.insert.exp(double %d, i64 %ull)
31 declare double @llvm.ppc.insert.exp(double, i64)
33 declare i64 @llvm.ppc.addex(i64, i64, i32 immarg)
34 define dso_local i64 @call_addex_0(i64 %a, i64 %b) {
35 ; CHECK-LABEL: call_addex_0:
36 ; CHECK: # %bb.0: # %entry
37 ; CHECK-NEXT: addex 3, 3, 4, 0
40 %0 = tail call i64 @llvm.ppc.addex(i64 %a, i64 %b, i32 0)