mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-23 22:06:19 +00:00

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257815 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
341 B
LLVM
14 lines
341 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
; Pick lsr (in bit-simplification) for extracting high halfword.
|
|
; CHECK: lsr{{.*}}#16
|
|
|
|
define i32 @foo(i32 %x) #0 {
|
|
%a = call i32 @llvm.hexagon.S2.extractu(i32 %x, i32 16, i32 16)
|
|
ret i32 %a
|
|
}
|
|
|
|
declare i32 @llvm.hexagon.S2.extractu(i32, i32, i32) #0
|
|
|
|
attributes #0 = { nounwind readnone }
|
|
|