summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/shift128.ll
blob: cf5b3fc6ff0c475fe99e88d8ab52da213d897f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-as < %s | llc -march=ppc64 | grep sld | count 5

define i128 @foo_lshr(i128 %x, i128 %y) {
  %r = lshr i128 %x, %y
  ret i128 %r
}
define i128 @foo_ashr(i128 %x, i128 %y) {
  %r = ashr i128 %x, %y
  ret i128 %r
}
define i128 @foo_shl(i128 %x, i128 %y) {
  %r = shl i128 %x, %y
  ret i128 %r
}
OpenPOWER on IntegriCloud