summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/GlobalISel/pr35375.ll
blob: 6147646df95d1098a23253de6012b380acf2d37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: llc -O0 -mtriple armv7-- -stop-before=finalize-isel < %s
; RUN: llc -O0 -mtriple armv7-- -stop-before=finalize-isel -global-isel < %s

; CHECK: PKHBT

define arm_aapcscc i32 @pkh(i32 %x, i32 %y) {
  %andx = and i32 %x, 65535
  %shl = shl i32 %y, 1
  %andy = and i32 %shl, 4294901760 ; same as -65536
  %or = or i32 %andx, %andy
  ret i32 %or
}
OpenPOWER on IntegriCloud