Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/merge_store.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 54457678186b |
line wrap: on
line source
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=x86-64 | FileCheck %s define void @merge_store(i32* nocapture %a) { ; CHECK-LABEL: merge_store: ; CHECK: movq ; CHECK: movq entry: br label %for.body for.body: %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv store i32 1, i32* %arrayidx, align 4 %0 = or i64 %indvars.iv, 1 %arrayidx2 = getelementptr inbounds i32* %a, i64 %0 store i32 1, i32* %arrayidx2, align 4 %1 = or i64 %indvars.iv, 2 %arrayidx5 = getelementptr inbounds i32* %a, i64 %1 store i32 1, i32* %arrayidx5, align 4 %2 = or i64 %indvars.iv, 3 %arrayidx8 = getelementptr inbounds i32* %a, i64 %2 store i32 1, i32* %arrayidx8, align 4 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4 %3 = trunc i64 %indvars.iv.next to i32 %cmp = icmp slt i32 %3, 1000 br i1 %cmp, label %for.body, label %for.end for.end: ret void }