1 ; All of these should be codegen'd without loading immediates
2 ; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
4 define i64 @add_ll(i64 %a, i64 %b) nounwind {
6 %tmp.2 = add i64 %b, %a ; <i64> [#uses=1]
14 define i64 @add_l_5(i64 %a) nounwind {
16 %tmp.1 = add i64 %a, 5 ; <i64> [#uses=1]
18 ; CHECK-LABEL: add_l_5:
19 ; CHECK: addic 4, 4, 5
24 define i64 @add_l_m5(i64 %a) nounwind {
26 %tmp.1 = add i64 %a, -5 ; <i64> [#uses=1]
28 ; CHECK-LABEL: add_l_m5:
29 ; CHECK: addic 4, 4, -5