Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

13 lines
363 B
LLVM

; RUN: llc -O0 -mtriple armv7-- -stop-before=expand-isel-pseudos < %s
; RUN: llc -O0 -mtriple armv7-- -stop-before=expand-isel-pseudos -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
}