mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-26 18:26:51 -04:00
9d3d80ccad
64bit mode must use 64bit registers, otherwise assumptions about the top half of the registers are made. Problem found by Takeshi Nakayama in NetBSD. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358998 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
234 B
LLVM
11 lines
234 B
LLVM
; 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
|