Xamarin Public Jenkins (auto-signing) e19d552987 Imported Upstream version 5.18.0.161
Former-commit-id: 4db48158d3a35497b8f118ab21b5f08ac3d86d98
2018-10-19 08:34:24 +00:00

19 lines
371 B
LLVM

; RUN: llc -O2 < %s | FileCheck %s
target triple = "powerpc64le-linux-gnu"
define void @test(i8* %p, i64 %data) {
entry:
%0 = tail call i64 @llvm.bswap.i64(i64 %data)
%ptr = bitcast i8* %p to i48*
%val = trunc i64 %0 to i48
store i48 %val, i48* %ptr, align 1
ret void
; CHECK: sth
; CHECK: stw
; CHECK-NOT: stdbrx
}
declare i64 @llvm.bswap.i64(i64)