1 ; RUN: llc -O2 < %s | FileCheck %s 2 target triple = "powerpc64le-linux-gnu" 3 4 define void @test(i8* %p, i64 %data) { 5 entry: 6 %0 = tail call i64 @llvm.bswap.i64(i64 %data) 7 %ptr = bitcast i8* %p to i48* 8 %val = trunc i64 %0 to i48 9 store i48 %val, i48* %ptr, align 1 10 ret void 11 12 ; CHECK: sth 13 ; CHECK: stw 14 ; CHECK-NOT: stdbrx 15 16 } 17 18 declare i64 @llvm.bswap.i64(i64) 19