diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/bperm.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/bperm.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/bperm.ll b/llvm/test/CodeGen/PowerPC/bperm.ll index 9c807763e70..2f3118a7f39 100644 --- a/llvm/test/CodeGen/PowerPC/bperm.ll +++ b/llvm/test/CodeGen/PowerPC/bperm.ll @@ -271,6 +271,18 @@ entry: ; CHECK: blr } +define i64 @test16(i64 %a, i64 %b) #0 { +entry: + %and = and i64 %a, 4294967295 + %shl = shl i64 %b, 32 + %or = or i64 %and, %shl + ret i64 %or + +; CHECK-LABEL: @test16 +; CHECK: rldimi 3, 4, 32, 0 +; CHECK: blr +} + ; Function Attrs: nounwind readnone declare i32 @llvm.bswap.i32(i32) #0 declare i64 @llvm.bswap.i64(i64) #0 |