summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/reg64.ll
blob: 74f4d46568f94dfd2e8e536e3a0d51a633bae9b7 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: llc < %s -march=sparcv9 | FileCheck %s

define dso_local zeroext i32 @f() local_unnamed_addr {
entry:
  %0 = tail call i64 asm "", "=r"()
  %shr = lshr i64 %0, 32
  %conv = trunc i64 %shr to i32
  ret i32 %conv
}
; CHECK: srlx
OpenPOWER on IntegriCloud