brintos

brintos / llvm-project-archived public Read only

0
0
Text · 856 B · 9e2a841 Raw
30 lines · plain
1; RUN: llc -verify-machineinstrs < %s -mcpu=pwr7 | FileCheck %s2target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"3target triple = "powerpc64-unknown-linux-gnu"4 5; Function Attrs: nounwind6define void @foo(ptr nocapture %a, ptr nocapture %b, ptr nocapture readonly %c, ptr nocapture %d) #0 {7 8; CHECK-LABEL: @foo9 10entry:11  %0 = load float, ptr %b, align 412  store float %0, ptr %a, align 413  %1 = load float, ptr %c, align 414  store float %1, ptr %b, align 415  %2 = load float, ptr %a, align 416  store float %2, ptr %d, align 417  ret void18 19; CHECK: lwz [[REG1:[0-9]+]], 0(4)20; CHECK: stw [[REG1]], 0(3)21; CHECK: lwz [[REG2:[0-9]+]], 0(5)22; CHECK: stw [[REG2]], 0(4)23; CHECK: lwz [[REG3:[0-9]+]], 0(3)24; CHECK: stw [[REG3]], 0(6)25; CHECK: blr26}27 28attributes #0 = { nounwind }29 30