]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/X86/2010-07-06-asm-RIP.ll
[X86][AVX] Added (V)MOVDDUP / (V)MOVSLDUP / (V)MOVSHDUP memory folding + tests.
[opencl/llvm.git] / test / CodeGen / X86 / 2010-07-06-asm-RIP.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s
2 ; PR 4752
4 @n = global i32 0                                 ; <i32*> [#uses=2]
6 define void @f(i32*) nounwind ssp {
7   ret void
8 }
10 define void @g() nounwind ssp {
11 entry:
12 ; CHECK: _g:
13 ; CHECK: push $_f$_f
14 ; CHECK: call _f(%rip)
15   call void asm sideeffect "push\09$1$1\0A\09call\09${1:a}\0A\09pop\09%edx", "imr,i,~{dirflag},~{fpsr},~{flags},~{memory},~{cc},~{edi},~{esi},~{edx},~{ecx},~{ebx},~{eax}"(i32* @n, void (i32*)* @f) nounwind
16   br label %return
18 return:                                           ; preds = %entry
19   ret void
20 }