summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/shift128.ll
blob: 17a380c71c3518386ae797416e5c3569c7c8321e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llc -verify-machineinstrs < %s -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