• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -O0 -mtriple armv7-- -stop-before=finalize-isel < %s
2; RUN: llc -O0 -mtriple armv7-- -stop-before=finalize-isel -global-isel < %s
3
4; CHECK: PKHBT
5
6define arm_aapcscc i32 @pkh(i32 %x, i32 %y) {
7  %andx = and i32 %x, 65535
8  %shl = shl i32 %y, 1
9  %andy = and i32 %shl, 4294901760 ; same as -65536
10  %or = or i32 %andx, %andy
11  ret i32 %or
12}
13