blob: e581eae0ee5761f3bb9fd94740bd36251a659530 [file] [log] [blame]
Ehsan Amiria538b0f2016-08-03 18:17:35 +00001; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=a2 | FileCheck %s
Hal Finkel22498fa2013-11-20 01:10:15 +00002target 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 %x) #0 {
6entry:
7; CHECK-LABEL: @foo
8 %a = lshr i64 %x, 35
9 %b = and i64 %a, 65535
10; CHECK: rldicl 3, 3, 29, 48
11 ret i64 %b
12; CHECK: blr
13}
14
15attributes #0 = { nounwind }
16