1 ; RUN: llc -verify-machineinstrs -mcpu=ppc64 < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
5 ; Function Attrs: nounwind readnone
8 ret i64 281474976710655
11 ; CHECK: lis [[REG1:[0-9]+]], -1
12 ; CHECK: rldicr 3, [[REG1]], 48, 63
16 ; Function Attrs: nounwind readnone
17 define i64 @cnb() #0 {
19 ret i64 281474976710575
22 ; CHECK: lis [[REG1:[0-9]+]], -81
23 ; CHECK: rldicr 3, [[REG1]], 48, 63
27 ; Function Attrs: nounwind readnone
28 define i64 @f2(i64 %x) #0 {
33 ; CHECK: li [[REG1:[0-9]+]], -1
34 ; CHECK: sldi 3, [[REG1]], 36
38 ; Function Attrs: nounwind readnone
39 define i64 @f2a(i64 %x) #0 {
44 ; CHECK: li [[REG1:[0-9]+]], -337
45 ; CHECK: sldi 3, [[REG1]], 30
49 ; Function Attrs: nounwind readnone
50 define i64 @f2n(i64 %x) #0 {
55 ; CHECK: lis [[REG1:[0-9]+]], -4096
56 ; CHECK: rldicr 3, [[REG1]], 36, 63
60 ; Function Attrs: nounwind readnone
61 define i64 @f3(i64 %x) #0 {
66 ; CHECK: lis [[REG1:[0-9]+]], -32768
67 ; CHECK: rldicr 3, [[REG1]], 33, 63
71 ; Function Attrs: nounwind readnone
72 define i64 @cn2n() #0 {
74 ret i64 -1407374887747585
77 ; CHECK: lis [[REG1:[0-9]+]], -5121
78 ; CHECK: ori [[REG2:[0-9]+]], [[REG1]], 65534
79 ; CHECK: rldicr 3, [[REG2]], 22, 63
83 attributes #0 = { nounwind readnone }