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}}
7 define void @foo(ptr %y) nounwind {
12 %i = phi i64 [ 0, %entry ], [ %k, %bb ]
13 %j = getelementptr double, ptr %y, i64 %i
14 store double 0.000000e+00, ptr %j
16 %n = icmp eq i64 %k, 0
17 br i1 %n, label %return, label %bb