Stackmap shadows should consider call returns a branch target.
[oota-llvm.git] / test / CodeGen / X86 / 2007-01-08-X86-64-Pointer.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
3 ; CHECK-NOT: {{addq.*8}}
4 ; CHECK:     ({{%rdi|%rcx}},%rax,8)
5 ; CHECK-NOT: {{addq.*8}}
6
7 define void @foo(double* %y) nounwind {
8 entry:
9         br label %bb
10
11 bb:
12         %i = phi i64 [ 0, %entry ], [ %k, %bb ]
13         %j = getelementptr double* %y, i64 %i
14         store double 0.000000e+00, double* %j
15         %k = add i64 %i, 1
16         %n = icmp eq i64 %k, 0
17         br i1 %n, label %return, label %bb
18
19 return:
20         ret void
21 }
22