mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
23c462a8b5
This allows targets to make more decisions about reserved registers after isel. For example, now it should be certain there are calls or stack objects in the frame or not, which could have been introduced by legalization. Patch by Matthias Braun llvm-svn: 363757
13 lines
351 B
LLVM
13 lines
351 B
LLVM
; 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
|
|
}
|