brintos

brintos / llvm-project-archived public Read only

0
0
Text · 782 B · 01f9c8f Raw
30 lines · plain
1; RUN: llvm-as %s -o %t.o2 3; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN:    --plugin-opt=save-temps -shared %t.o -o %t2.o5; RUN: llvm-dis %t2.o.0.4.opt.bc -o - | FileCheck %s6 7; test that the vectorizer is run.8; CHECK: fadd <4 x float>9 10target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13define void @f(ptr nocapture %x, i64 %n) {14bb:15  br label %bb116 17bb1:18  %i.0 = phi i64 [ 0, %bb ], [ %tmp4, %bb1 ]19  %tmp = getelementptr inbounds float, ptr %x, i64 %i.020  %tmp2 = load float, ptr %tmp, align 421  %tmp3 = fadd float %tmp2, 1.000000e+0022  store float %tmp3, ptr %tmp, align 423  %tmp4 = add nsw i64 %i.0, 124  %tmp5 = icmp slt i64 %tmp4, %n25  br i1 %tmp5, label %bb1, label %bb626 27bb6:28  ret void29}30