brintos

brintos / llvm-project-archived public Read only

0
0
Text · 729 B · 9091747 Raw
53 lines · plain
1; All of these routines should be perform optimal load of constants.2; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \3; RUN:   grep lis | count 54; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \5; RUN:   grep ori | count 36; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | \7; RUN:   grep "li " | count 48 9define i32 @f1() {10entry:11	ret i32 112}13 14define i32 @f2() {15entry:16	ret i32 -117}18 19define i32 @f3() {20entry:21	ret i32 022}23 24define i32 @f4() {25entry:26	ret i32 3276727}28 29define i32 @f5() {30entry:31	ret i32 6553532}33 34define i32 @f6() {35entry:36	ret i32 6553637}38 39define i32 @f7() {40entry:41	ret i32 13107142}43 44define i32 @f8() {45entry:46	ret i32 214748364747}48 49define i32 @f9() {50entry:51	ret i32 -214748364852}53