1; All of these should be codegen'd without loading immediates 2; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s 3 4define i64 @add_ll(i64 %a, i64 %b) nounwind { 5entry: 6 %tmp.2 = add i64 %b, %a ; <i64> [#uses=1] 7 ret i64 %tmp.2 8; CHECK-LABEL: add_ll: 9; CHECK: addc 4, 6, 4 10; CHECK: adde 3, 5, 3 11; CHECK: blr 12} 13 14define i64 @add_l_5(i64 %a) nounwind { 15entry: 16 %tmp.1 = add i64 %a, 5 ; <i64> [#uses=1] 17 ret i64 %tmp.1 18; CHECK-LABEL: add_l_5: 19; CHECK: addic 4, 4, 5 20; CHECK: addze 3, 3 21; CHECK: blr 22} 23 24define i64 @add_l_m5(i64 %a) nounwind { 25entry: 26 %tmp.1 = add i64 %a, -5 ; <i64> [#uses=1] 27 ret i64 %tmp.1 28; CHECK-LABEL: add_l_m5: 29; CHECK: addic 4, 4, -5 30; CHECK: addme 3, 3 31; CHECK: blr 32} 33 34