brintos

brintos / llvm-project-archived public Read only

0
0
Text · 468 B · 0c4cfc2 Raw
17 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g4 | FileCheck %s2 3define void @test(ptr nocapture %x, ptr %xx, ptr %yp) nounwind uwtable ssp {4entry:5  %yy = load i32, ptr %yp6  %y = add i32 %yy, 17  %z = zext i32 %y to i648  %z2 = shl i64 %z, 32 9  store i64 %z2, ptr %xx, align 410  ret void11 12; CHECK-LABEL: test:13; CHECK: sldi {{.*}}, {{.*}}, 3214; Note: it's okay if someday CodeGen gets smart enough to optimize out15; the shift.16}17