1; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
2; RUN:   -mcpu=future -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
3; RUN:   FileCheck %s --check-prefix=CHECK-S
4; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
5; RUN:   -mcpu=future -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr \
6; RUN:   --filetype=obj < %s | \
7; RUN:   llvm-objdump --mcpu=future -dr - | FileCheck %s --check-prefix=CHECK-O
8
9; Constant Pool Index.
10; CHECK-S-LABEL: ConstPool
11; CHECK-S:       plfd f1, .LCPI0_0@PCREL(0), 1
12; CHECK-S:       blr
13
14; CHECK-O-LABEL: ConstPool
15; CHECK-O:       plfd 1, 0(0), 1
16; CHECK-O-NEXT:  R_PPC64_PCREL34  .rodata.cst8
17; CHECK-O:       blr
18define dso_local double @ConstPool() local_unnamed_addr {
19  entry:
20    ret double 0x406ECAB439581062
21}
22
23
24