blob: 21bc9cc37700619903c3a547e1ba08c0cee67aab [file] [log] [blame]
Hal Finkel0e910d22013-08-06 17:03:03 +00001; RUN: llc -mcpu=pwr7 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3target triple = "powerpc64-unknown-linux-gnu"
4
5define i64 @foo(i64 %a) #0 {
6entry:
7 %mul = mul nsw i64 %a, 3
8 ret i64 %mul
9}
10
11; CHECK-LABEL: @foo
12; CHECK: mulli 3, 3, 3
13; CHECK: blr
14
15attributes #0 = { nounwind readnone }
16