brintos

brintos / llvm-project-archived public Read only

0
0
Text · 532 B · afb22aa Raw
23 lines · plain
1; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s2; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s3; CHECK-NOT: {{addq.*8}}4; CHECK:     ({{%rdi|%rcx}},%rax,8)5; CHECK-NOT: {{addq.*8}}6 7define void @foo(ptr %y) nounwind {8entry:9        br label %bb10 11bb:12        %i = phi i64 [ 0, %entry ], [ %k, %bb ]13        %j = getelementptr double, ptr %y, i64 %i14        store double 0.000000e+00, ptr %j15        %k = add i64 %i, 116        %n = icmp eq i64 %k, 017        br i1 %n, label %return, label %bb18 19return:20        ret void21}22 23