2011-01-03 22:53:22 +00:00
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-STATIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=i686-unknown-linux-gnu -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-32-PIC
|
2009-08-25 18:45:03 +00:00
|
|
|
|
2011-01-03 22:53:22 +00:00
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=LINUX-64-STATIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=LINUX-64-PIC
|
2009-08-25 18:45:03 +00:00
|
|
|
|
2011-01-03 22:53:22 +00:00
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=i686-apple-darwin -march=x86 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-32-STATIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=i686-apple-darwin -march=x86 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-DYNAMIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=i686-apple-darwin -march=x86 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-32-PIC
|
2009-08-25 18:45:03 +00:00
|
|
|
|
2011-01-03 22:53:22 +00:00
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=static -code-model=small | FileCheck %s -check-prefix=DARWIN-64-STATIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=dynamic-no-pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-DYNAMIC
|
|
|
|
; RUN: llc < %s -asm-verbose=0 -mtriple=x86_64-apple-darwin -march=x86-64 -relocation-model=pic -code-model=small | FileCheck %s -check-prefix=DARWIN-64-PIC
|
2009-03-14 02:35:10 +00:00
|
|
|
|
|
|
|
@src = external global [131072 x i32]
|
|
|
|
@dst = external global [131072 x i32]
|
|
|
|
@xsrc = external global [32 x i32]
|
|
|
|
@xdst = external global [32 x i32]
|
|
|
|
@ptr = external global i32*
|
|
|
|
@dsrc = global [131072 x i32] zeroinitializer, align 32
|
|
|
|
@ddst = global [131072 x i32] zeroinitializer, align 32
|
|
|
|
@dptr = global i32* null
|
|
|
|
@lsrc = internal global [131072 x i32] zeroinitializer
|
|
|
|
@ldst = internal global [131072 x i32] zeroinitializer
|
|
|
|
@lptr = internal global i32* null
|
|
|
|
@ifunc = external global void ()*
|
|
|
|
@difunc = global void ()* null
|
|
|
|
@lifunc = internal global void ()* null
|
|
|
|
@lxsrc = internal global [32 x i32] zeroinitializer, align 32
|
|
|
|
@lxdst = internal global [32 x i32] zeroinitializer, align 32
|
|
|
|
@dxsrc = global [32 x i32] zeroinitializer, align 32
|
|
|
|
@dxdst = global [32 x i32] zeroinitializer, align 32
|
|
|
|
|
|
|
|
define void @foo00() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 0), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 0), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
|
|
|
|
; LINUX-64-STATIC: foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r..]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e..]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r..]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e..]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e..]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e..]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L0$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L0$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L0$pb([[EAX]]), [[ECX:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[ECX]]), [[ECX:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L0$pb([[EAX]]), [[EAX:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r..]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]]), [[EAX:%e..]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r..]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r..]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]]), [[EAX:%e..]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r..]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r..]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e..]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r..]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @fxo00() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([32 x i32]* @xsrc, i32 0, i64 0), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([32 x i32]* @xdst, i32 0, i64 0), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
|
|
|
|
; LINUX-64-STATIC: fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], xdst
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl xsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], xdst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl xsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], xdst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _xsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _xdst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _fxo00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L1$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L1$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L1$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L1$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _fxo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo01() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @dst, i32 0, i32 0), i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo01:
|
|
|
|
; LINUX-64-STATIC: movq $dst, ptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo01:
|
|
|
|
; LINUX-32-STATIC: movl $dst, ptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo01:
|
|
|
|
; LINUX-32-PIC: movl $dst, ptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst, _ptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_dst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L2$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L2$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L2$pb(
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L2$pb(
|
|
|
|
; DARWIN-32-PIC-NEXT: movl
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @fxo01() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([32 x i32]* @xdst, i32 0, i32 0), i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: fxo01:
|
|
|
|
; LINUX-64-STATIC: movq $xdst, ptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: fxo01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst, ptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: fxo01:
|
|
|
|
; LINUX-32-PIC: movl $xdst, ptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: fxo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _fxo01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst, _ptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _fxo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xdst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _fxo01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L3$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L3$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[R0:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L3$pb([[R0]]), [[R1:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L3$pb([[R0]]), [[R2:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[R1:%e..]], ([[R2]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _fxo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _fxo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _fxo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 0), align 4
|
|
|
|
store i32 %1, i32* %0, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo02:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movl src(%rip), %
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), %
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: movl
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L4$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L4$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[R0:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L4$pb([[R0]]), [[R1:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[R1]]), [[R2:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L4$pb([[R0]]), [[R3:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[R3]]), [[R4:%e..]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[R2]], ([[R4]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @fxo02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([32 x i32]* @xsrc, i32 0, i64 0), align 4
|
|
|
|
store i32 %1, i32* %0, align 4
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: fxo02:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc(%rip), %
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), %
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: movl
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl xsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-PIC: fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl xsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _xsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _fxo02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L5$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L5$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L5$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L5$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _fxo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo03() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 0), align 32
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 0), align 32
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ddst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ddst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ddst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ddst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L6$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L6$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dsrc-L6$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _ddst-L6$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ddst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ddst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ddst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo04() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ddst, i32 0, i32 0), i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo04:
|
|
|
|
; LINUX-64-STATIC: movq $ddst, dptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst, dptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo04:
|
|
|
|
; LINUX-32-PIC: movl $ddst, dptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst, _dptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst, _dptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L7$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L7$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ddst-L7$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L7$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo05() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 0), align 32
|
|
|
|
store i32 %1, i32* %0, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo05:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc(%rip), %
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), %
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: movl
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L8$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L8$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dsrc-L8$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L8$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo06() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 0), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 0), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ldst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ldst
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ldst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ldst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ldst
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L9$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L9$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lsrc-L9$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _ldst-L9$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ldst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ldst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ldst(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo07() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ldst, i32 0, i32 0), i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo07:
|
|
|
|
; LINUX-64-STATIC: movq $ldst, lptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst, lptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo07:
|
|
|
|
; LINUX-32-PIC: movl $ldst, lptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst, _lptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst, _lptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L10$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L10$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ldst-L10$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L10$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo08() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 0), align 4
|
|
|
|
store i32 %1, i32* %0, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: foo08:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc(%rip), %
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), %
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: movl
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _foo08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L11$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L11$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lsrc-L11$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L11$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _foo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux00() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 16), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 16), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst+64(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L12$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L12$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L12$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L12$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qxx00() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([32 x i32]* @xsrc, i32 0, i64 16), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([32 x i32]* @xdst, i32 0, i64 16), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], xdst+64(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl xsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], xdst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl xsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], xdst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _xsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _xdst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qxx00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L13$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L13$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L13$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L13$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qxx00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux01() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 16), i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux01:
|
|
|
|
; LINUX-64-STATIC: movq $dst+64, ptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux01:
|
|
|
|
; LINUX-32-STATIC: movl $dst+64, ptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux01:
|
|
|
|
; LINUX-32-PIC: movl $dst+64, ptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst+64, _ptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_dst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L14$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L14$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L14$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L14$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qxx01() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([32 x i32]* @xdst, i32 0, i64 16), i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qxx01:
|
|
|
|
; LINUX-64-STATIC: movq $xdst+64, ptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qxx01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst+64, ptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qxx01:
|
|
|
|
; LINUX-32-PIC: movl $xdst+64, ptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qxx01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qxx01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst+64, _ptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qxx01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xdst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qxx01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L15$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L15$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L15$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L15$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qxx01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qxx01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qxx01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 16), align 4
|
|
|
|
%2 = getelementptr i32* %0, i64 16
|
|
|
|
store i32 %1, i32* %2, align 4
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-PIC: qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L16$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L16$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L16$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L16$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qxx02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([32 x i32]* @xsrc, i32 0, i64 16), align 4
|
|
|
|
%2 = getelementptr i32* %0, i64 16
|
|
|
|
store i32 %1, i32* %2, align 4
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl xsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-PIC: qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl xsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _xsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qxx02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L17$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L17$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L17$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L17$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qxx02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux03() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 16), align 32
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 16), align 32
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst+64(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ddst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ddst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ddst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ddst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L18$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L18$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L18$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], (_ddst-L18$pb)+64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ddst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ddst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ddst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux04() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 16), i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux04:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq $ddst+64, dptr(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst+64, dptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux04:
|
|
|
|
; LINUX-32-PIC: movl $ddst+64, dptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst+64, _dptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst+64, _dptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L19$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L19$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L19$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L19$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux05() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 16), align 32
|
|
|
|
%2 = getelementptr i32* %0, i64 16
|
|
|
|
store i32 %1, i32* %2, align 4
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-PIC: qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L20$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L20$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L20$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L20$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux06() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 16), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 16), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst+64
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ldst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ldst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ldst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ldst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ldst+64
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L21$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L21$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L21$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], (_ldst-L21$pb)+64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ldst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ldst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ldst+64(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux07() nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 16), i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux07:
|
|
|
|
; LINUX-64-STATIC: movq $ldst+64, lptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst+64, lptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: qux07:
|
|
|
|
; LINUX-32-PIC: movl $ldst+64, lptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst+64, _lptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst+64, _lptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L22$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L22$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L22$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L22$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst+64(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @qux08() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 16), align 4
|
|
|
|
%2 = getelementptr i32* %0, i64 16
|
|
|
|
store i32 %1, i32* %2, align 4
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-PIC: qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc+64, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc+64, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 64([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _qux08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L23$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L23$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L23$pb)+64([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L23$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 64([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _qux08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc+64(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @src, i64 0, i64 %i
|
|
|
|
%1 = load i32* %0, align 4
|
|
|
|
%2 = getelementptr [131072 x i32]* @dst, i64 0, i64 %i
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], dst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], dst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _dst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L24$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L24$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L24$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L24$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ixd00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %i
|
|
|
|
%1 = load i32* %0, align 4
|
|
|
|
%2 = getelementptr [32 x i32]* @xdst, i64 0, i64 %i
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], xdst(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], xdst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], xdst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _xdst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ixd00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L25$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L25$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L25$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L25$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ixd00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @dst, i64 0, i64 %i
|
|
|
|
store i32* %0, i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq dst(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], ptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind01:
|
|
|
|
; LINUX-64-PIC: shlq $2, %rdi
|
|
|
|
; LINUX-64-PIC-NEXT: addq dst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: shll $2, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_dst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L26$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L26$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: shll $2, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: addl L_dst$non_lazy_ptr-L26$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L26$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind01:
|
|
|
|
; DARWIN-64-STATIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _dst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind01:
|
|
|
|
; DARWIN-64-DYNAMIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _dst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind01:
|
|
|
|
; DARWIN-64-PIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _dst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ixd01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [32 x i32]* @xdst, i64 0, i64 %i
|
|
|
|
store i32* %0, i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ixd01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq xdst(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], ptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ixd01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal xdst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ixd01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xdst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ixd01:
|
|
|
|
; LINUX-64-PIC: shlq $2, %rdi
|
|
|
|
; LINUX-64-PIC-NEXT: addq xdst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ixd01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xdst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ixd01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: shll $2, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_xdst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ixd01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L27$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L27$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: shll $2, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: addl L_xdst$non_lazy_ptr-L27$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L27$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ixd01:
|
|
|
|
; DARWIN-64-STATIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _xdst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ixd01:
|
|
|
|
; DARWIN-64-DYNAMIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _xdst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ixd01:
|
|
|
|
; DARWIN-64-PIC: shlq $2, %rdi
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _xdst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = getelementptr [131072 x i32]* @src, i64 0, i64 %i
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr i32* %0, i64 %i
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EDX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L28$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L28$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L28$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L28$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ixd02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %i
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr i32* %0, i64 %i
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _xsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EDX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ixd02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L29$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L29$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L29$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L29$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ixd02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %i
|
|
|
|
%1 = load i32* %0, align 4
|
|
|
|
%2 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %i
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ddst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ddst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ddst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ddst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L30$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L30$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dsrc-L30$pb([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], _ddst-L30$pb([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %i
|
|
|
|
store i32* %0, i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ddst(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], dptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ddst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ddst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind04:
|
|
|
|
; LINUX-64-PIC: shlq $2, %rdi
|
|
|
|
; LINUX-64-PIC-NEXT: addq ddst@GOTPCREL(%rip), %rdi
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq %rdi, ([[RAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ddst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ddst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L31$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L31$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ddst-L31$pb([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L31$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %i
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr i32* %0, i64 %i
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L32$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L32$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dsrc-L32$pb([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L32$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %i
|
|
|
|
%1 = load i32* %0, align 4
|
|
|
|
%2 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %i
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ldst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ldst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ldst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ldst(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L33$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L33$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lsrc-L33$pb([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], _ldst-L33$pb([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %i
|
|
|
|
store i32* %0, i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ldst(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], lptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ldst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ldst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ldst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ldst(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L34$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L34$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ldst-L34$pb([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L34$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq ([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ind08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %i
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr i32* %0, i64 %i
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], ([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ind08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L35$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L35$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lsrc-L35$pb([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L35$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], ([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ind08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl ([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], ([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @src, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @dst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst+64(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], dst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], dst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _dst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L36$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L36$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L36$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L36$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @oxf00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [32 x i32]* @xdst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], xdst+64(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], xdst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], xdst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _xdst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _oxf00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L37$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L37$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L37$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L37$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _oxf00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _xdst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 16
|
|
|
|
%0 = getelementptr [131072 x i32]* @dst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq dst+64(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], ptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L38$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L38$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L38$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EDX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L38$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @oxf01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 16
|
|
|
|
%0 = getelementptr [32 x i32]* @xdst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq xdst+64(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], ptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal xdst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xdst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xdst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _oxf01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L39$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L39$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L39$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EDX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L39$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _oxf01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr [131072 x i32]* @src, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EDX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L40$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L40$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L40$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L40$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @oxf02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl xsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _xsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 64([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EDX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _oxf02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L41$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L41$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L41$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 64([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L41$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _oxf02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst+64(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ddst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ddst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ddst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ddst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L42$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L42$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L42$pb)+64([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], (_ddst-L42$pb)+64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 16
|
|
|
|
%0 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ddst+64(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], dptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ddst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ddst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ddst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ddst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L43$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L43$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L43$pb)+64([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L43$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L44$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L44$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L44$pb)+64([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L44$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst+64(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ldst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ldst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ldst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ldst+64(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L45$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L45$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L45$pb)+64([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], (_ldst-L45$pb)+64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 16
|
|
|
|
%0 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ldst+64(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], lptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ldst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ldst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ldst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ldst+64(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L46$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L46$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L46$pb)+64([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L46$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @off08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+64(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc+64(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 64([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _off08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L47$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L47$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L47$pb)+64([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L47$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 64([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _off08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 64([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 64([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 65536), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 65536), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst+262144(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 262144([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L48$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L48$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L48$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 262144([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L48$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 65536), i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo01:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq $dst+262144, ptr(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo01:
|
|
|
|
; LINUX-32-STATIC: movl $dst+262144, ptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo01:
|
|
|
|
; LINUX-32-PIC: movl $dst+262144, ptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: addq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst+262144, _ptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_dst$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L49$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L49$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: addl L_dst$non_lazy_ptr-L49$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L49$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @src, i32 0, i64 65536), align 4
|
|
|
|
%2 = getelementptr i32* %0, i64 65536
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl src+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl src+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _src+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 262144([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L50$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L50$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L50$pb([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 262144([[ECX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L50$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 65536), align 32
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 65536), align 32
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst+262144(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ddst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ddst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ddst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ddst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L51$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L51$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L51$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], (_ddst-L51$pb)+262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ddst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ddst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ddst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 65536), i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo04:
|
|
|
|
; LINUX-64-STATIC: movq $ddst+262144, dptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst+262144, dptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo04:
|
|
|
|
; LINUX-32-PIC: movl $ddst+262144, dptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl $262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: addq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst+262144, _dptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst+262144, _dptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L52$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L52$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L52$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L52$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 65536), align 32
|
|
|
|
%2 = getelementptr i32* %0, i64 65536
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]]), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _dsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L53$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L53$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L53$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L53$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _dsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 65536), align 4
|
|
|
|
store i32 %0, i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 65536), align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst+262144(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ldst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ldst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], ldst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ldst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _ldst+262144
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L54$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L54$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L54$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], (_ldst-L54$pb)+262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], _ldst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], _ldst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], _ldst+262144(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
store i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 65536), i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo07:
|
|
|
|
; LINUX-64-STATIC: movq $ldst+262144, lptr
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst+262144, lptr
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo07:
|
|
|
|
; LINUX-32-PIC: movl $ldst+262144, lptr
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst+262144, _lptr
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst+262144, _lptr
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L55$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L55$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L55$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L55$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst+262144(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @moo08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = load i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 65536), align 4
|
|
|
|
%2 = getelementptr i32* %0, i64 65536
|
|
|
|
store i32 %1, i32* %2, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]])
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movl lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl _lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl _lsrc+262144, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], 262144([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _moo08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L56$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L56$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L56$pb)+262144([[EAX]]), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L56$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], 262144([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _moo08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movl _lsrc+262144(%rip), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @src, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @dst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], dst+262144(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], dst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], dst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _dst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 262144([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L57$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L57$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L57$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 262144([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L57$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 65536
|
|
|
|
%0 = getelementptr [131072 x i32]* @dst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @ptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq dst+262144(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], ptr(%rip)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _ptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], ([[ECX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L58$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L58$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L58$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EDX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L58$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], ([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr [131072 x i32]* @src, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl src+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _src+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 262144([[ECX]],[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ptr$non_lazy_ptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EDX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L59$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L59$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L59$pb([[EAX]]), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 262144([[EDX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L59$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ddst+262144(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ddst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ddst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ddst@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ddst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ddst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L60$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L60$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L60$pb)+262144([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], (_ddst-L60$pb)+262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ddst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 65536
|
|
|
|
%0 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @dptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ddst+262144(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], dptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ddst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ddst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], ([[RCX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ddst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ddst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _dptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L61$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L61$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L61$pb)+262144([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _dptr-L61$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _dptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl dsrc+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RCX]]), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L62$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L62$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_dsrc-L62$pb)+262144([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L62$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _dptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %0
|
|
|
|
%2 = load i32* %1, align 4
|
|
|
|
%3 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %0
|
|
|
|
store i32 %2, i32* %3, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], ldst+262144(,%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], ldst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], ldst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], _ldst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], _ldst+262144(,[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L63$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L63$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L63$pb)+262144([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], (_ldst-L63$pb)+262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq _ldst(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%.sum = add i64 %i, 65536
|
|
|
|
%0 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %.sum
|
|
|
|
store i32* %0, i32** @lptr, align 8
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: leaq ldst+262144(,%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movq [[RAX]], lptr
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ldst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ldst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[EAX]], lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq [[RAX]], lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ldst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ldst+262144(,[[EAX]],4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[EAX]], _lptr
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L64$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L64$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L64$pb)+262144([[EAX]],[[ECX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[ECX]], _lptr-L64$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq [[RAX]], _lptr(%rip)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @big08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %1
|
|
|
|
%3 = load i32* %2, align 4
|
|
|
|
%4 = getelementptr i32* %0, i64 %1
|
|
|
|
store i32 %3, i32* %4, align 4
|
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movl lsrc+262144(,%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[EDX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lsrc+262144(,[[EAX]],4), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl [[ECX]], 262144([[EDX]],[[EAX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _big08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L65$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L65$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl (_lsrc-L65$pb)+262144([[EAX]],[[ECX]],4), [[EDX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L65$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl [[EDX]], 262144([[EAX]],[[ECX]],4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _big08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl 262144([[RAX]],%rdi,4), [[EAX:%e.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _lptr(%rip), [[RCX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movl [[EAX]], 262144([[RCX]],%rdi,4)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @src to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $src, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar00:
|
|
|
|
; LINUX-32-STATIC: movl $src, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar00:
|
|
|
|
; LINUX-32-PIC: movl $src, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar00:
|
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar00:
|
|
|
|
; DARWIN-32-STATIC: movl $_src, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L66$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L66$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L66$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar00:
|
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar00:
|
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bxr00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([32 x i32]* @xsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bxr00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bxr00:
|
|
|
|
; LINUX-32-STATIC: movl $xsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bxr00:
|
|
|
|
; LINUX-32-PIC: movl $xsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bxr00:
|
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bxr00:
|
|
|
|
; DARWIN-32-STATIC: movl $_xsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bxr00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bxr00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L67$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L67$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L67$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bxr00:
|
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bxr00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bxr00:
|
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @dst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar01:
|
|
|
|
; LINUX-32-STATIC: movl $dst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar01:
|
|
|
|
; LINUX-32-PIC: movl $dst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar01:
|
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_dst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L68$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L68$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L68$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar01:
|
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar01:
|
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bxr01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([32 x i32]* @xdst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bxr01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xdst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bxr01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bxr01:
|
|
|
|
; LINUX-32-PIC: movl $xdst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bxr01:
|
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bxr01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bxr01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xdst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bxr01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L69$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L69$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L69$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bxr01:
|
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bxr01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bxr01:
|
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar02() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32** @ptr to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar02:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ptr, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar02:
|
|
|
|
; LINUX-32-STATIC: movl $ptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar02:
|
|
|
|
; LINUX-32-PIC: movl $ptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar02:
|
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar02:
|
|
|
|
; DARWIN-32-STATIC: movl $_ptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar02:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L70$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L70$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L70$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar02:
|
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar02:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar02:
|
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar03() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @dsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar03:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar03:
|
|
|
|
; LINUX-32-STATIC: movl $dsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar03:
|
|
|
|
; LINUX-32-PIC: movl $dsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar03:
|
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar03:
|
|
|
|
; DARWIN-32-STATIC: movl $_dsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar03:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dsrc, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L71$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L71$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _dsrc-L71$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar03:
|
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar03:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar03:
|
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar04() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @ddst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar04:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ddst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar04:
|
|
|
|
; LINUX-32-PIC: movl $ddst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar04:
|
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L72$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L72$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ddst-L72$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar04:
|
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar04:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar04:
|
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar05() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32** @dptr to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar05:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dptr, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar05:
|
|
|
|
; LINUX-32-STATIC: movl $dptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar05:
|
|
|
|
; LINUX-32-PIC: movl $dptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar05:
|
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar05:
|
|
|
|
; DARWIN-32-STATIC: movl $_dptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar05:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L73$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L73$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _dptr-L73$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar05:
|
|
|
|
; DARWIN-64-STATIC: leaq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar05:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar05:
|
|
|
|
; DARWIN-64-PIC: leaq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar06() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @lsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar06:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar06:
|
|
|
|
; LINUX-32-STATIC: movl $lsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar06:
|
|
|
|
; LINUX-32-PIC: movl $lsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar06:
|
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar06:
|
|
|
|
; DARWIN-32-STATIC: movl $_lsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar06:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lsrc, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L74$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L74$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _lsrc-L74$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar06:
|
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar06:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar06:
|
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar07() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @ldst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar07:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ldst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar07:
|
|
|
|
; LINUX-32-PIC: movl $ldst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar07:
|
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L75$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L75$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ldst-L75$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar07:
|
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar07:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar07:
|
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bar08() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32** @lptr to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bar08:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lptr, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bar08:
|
|
|
|
; LINUX-32-STATIC: movl $lptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bar08:
|
|
|
|
; LINUX-32-PIC: movl $lptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bar08:
|
|
|
|
; LINUX-64-PIC: leaq lptr(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bar08:
|
|
|
|
; DARWIN-32-STATIC: movl $_lptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bar08:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bar08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L76$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L76$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _lptr-L76$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bar08:
|
|
|
|
; DARWIN-64-STATIC: leaq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bar08:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bar08:
|
|
|
|
; DARWIN-64-PIC: leaq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @src to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $src, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har00:
|
|
|
|
; LINUX-32-STATIC: movl $src, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har00:
|
|
|
|
; LINUX-32-PIC: movl $src, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har00:
|
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har00:
|
|
|
|
; DARWIN-32-STATIC: movl $_src, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L77$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L77$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L77$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har00:
|
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har00:
|
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @hxr00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([32 x i32]* @xsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: hxr00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC: hxr00:
|
|
|
|
; LINUX-32-STATIC: movl $xsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: hxr00:
|
|
|
|
; LINUX-32-PIC: movl $xsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: hxr00:
|
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _hxr00:
|
|
|
|
; DARWIN-32-STATIC: movl $_xsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _hxr00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _hxr00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L78$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L78$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L78$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _hxr00:
|
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _hxr00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _hxr00:
|
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har01() nounwind {
|
2009-03-14 02:35:10 +00:00
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @dst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har01:
|
|
|
|
; LINUX-32-STATIC: movl $dst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har01:
|
|
|
|
; LINUX-32-PIC: movl $dst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har01:
|
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_dst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L79$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L79$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L79$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har01:
|
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har01:
|
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @hxr01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([32 x i32]* @xdst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: hxr01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xdst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: hxr01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: hxr01:
|
|
|
|
; LINUX-32-PIC: movl $xdst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: hxr01:
|
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _hxr01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _hxr01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xdst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _hxr01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L80$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L80$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L80$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _hxr01:
|
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _hxr01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _hxr01:
|
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = bitcast i32* %0 to i8*
|
|
|
|
ret i8* %1
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har02:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har02:
|
|
|
|
; LINUX-32-STATIC: movl ptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har02:
|
|
|
|
; LINUX-32-PIC: movl ptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har02:
|
|
|
|
; DARWIN-32-STATIC: movl _ptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L81$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L81$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L81$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har03() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @dsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har03:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har03:
|
|
|
|
; LINUX-32-STATIC: movl $dsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har03:
|
|
|
|
; LINUX-32-PIC: movl $dsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har03:
|
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har03:
|
|
|
|
; DARWIN-32-STATIC: movl $_dsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har03:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dsrc, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L82$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L82$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _dsrc-L82$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har03:
|
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har03:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har03:
|
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har04() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @ddst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har04:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ddst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har04:
|
|
|
|
; LINUX-32-PIC: movl $ddst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har04:
|
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L83$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L83$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ddst-L83$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har04:
|
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har04:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har04:
|
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har05() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = bitcast i32* %0 to i8*
|
|
|
|
ret i8* %1
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har05:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har05:
|
|
|
|
; LINUX-32-STATIC: movl dptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har05:
|
|
|
|
; LINUX-32-PIC: movl dptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har05:
|
|
|
|
; DARWIN-32-STATIC: movl _dptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har05:
|
|
|
|
; DARWIN-32-DYNAMIC: movl _dptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L84$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L84$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L84$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har05:
|
|
|
|
; DARWIN-64-STATIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har05:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har05:
|
|
|
|
; DARWIN-64-PIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har06() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @lsrc to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har06:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lsrc, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har06:
|
|
|
|
; LINUX-32-STATIC: movl $lsrc, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har06:
|
|
|
|
; LINUX-32-PIC: movl $lsrc, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har06:
|
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har06:
|
|
|
|
; DARWIN-32-STATIC: movl $_lsrc, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har06:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lsrc, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L85$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L85$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _lsrc-L85$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har06:
|
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har06:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har06:
|
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har07() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast ([131072 x i32]* @ldst to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har07:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ldst, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har07:
|
|
|
|
; LINUX-32-PIC: movl $ldst, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har07:
|
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L86$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L86$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _ldst-L86$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har07:
|
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har07:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har07:
|
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @har08() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = bitcast i32* %0 to i8*
|
|
|
|
ret i8* %1
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: har08:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: har08:
|
|
|
|
; LINUX-32-STATIC: movl lptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: har08:
|
|
|
|
; LINUX-32-PIC: movl lptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: har08:
|
|
|
|
; LINUX-64-PIC: movq lptr(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _har08:
|
|
|
|
; DARWIN-32-STATIC: movl _lptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _har08:
|
|
|
|
; DARWIN-32-DYNAMIC: movl _lptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _har08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L87$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L87$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L87$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _har08:
|
|
|
|
; DARWIN-64-STATIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _har08:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _har08:
|
|
|
|
; DARWIN-64-PIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @src, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $src+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat00:
|
|
|
|
; LINUX-32-STATIC: movl $src+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat00:
|
|
|
|
; LINUX-32-PIC: movl $src+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat00:
|
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat00:
|
|
|
|
; DARWIN-32-STATIC: movl $_src+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_src$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L88$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L88$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L88$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat00:
|
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat00:
|
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bxt00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([32 x i32]* @xsrc, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bxt00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xsrc+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bxt00:
|
|
|
|
; LINUX-32-STATIC: movl $xsrc+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bxt00:
|
|
|
|
; LINUX-32-PIC: movl $xsrc+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bxt00:
|
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bxt00:
|
|
|
|
; DARWIN-32-STATIC: movl $_xsrc+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bxt00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xsrc$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bxt00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L89$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L89$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L89$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bxt00:
|
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bxt00:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bxt00:
|
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dst+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat01:
|
|
|
|
; LINUX-32-STATIC: movl $dst+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat01:
|
|
|
|
; LINUX-32-PIC: movl $dst+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat01:
|
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_dst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L90$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L90$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L90$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat01:
|
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat01:
|
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bxt01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([32 x i32]* @xdst, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bxt01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xdst+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bxt01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bxt01:
|
|
|
|
; LINUX-32-PIC: movl $xdst+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bxt01:
|
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bxt01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bxt01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_xdst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bxt01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L91$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L91$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L91$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bxt01:
|
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bxt01:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bxt01:
|
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 16
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat02:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: addq $64, %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat02:
|
|
|
|
; LINUX-32-STATIC: movl ptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat02:
|
|
|
|
; LINUX-32-PIC: movl ptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat02:
|
|
|
|
; DARWIN-32-STATIC: movl _ptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L92$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L92$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L92$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat03() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat03:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dsrc+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat03:
|
|
|
|
; LINUX-32-STATIC: movl $dsrc+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat03:
|
|
|
|
; LINUX-32-PIC: movl $dsrc+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat03:
|
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat03:
|
|
|
|
; DARWIN-32-STATIC: movl $_dsrc+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat03:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dsrc+64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L93$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L93$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_dsrc-L93$pb)+64([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat03:
|
|
|
|
; DARWIN-64-STATIC: leaq _dsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat03:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat03:
|
|
|
|
; DARWIN-64-PIC: leaq _dsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat04() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat04:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ddst+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat04:
|
|
|
|
; LINUX-32-PIC: movl $ddst+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat04:
|
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst+64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L94$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L94$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L94$pb)+64([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat04:
|
|
|
|
; DARWIN-64-STATIC: leaq _ddst+64(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat04:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst+64(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat04:
|
|
|
|
; DARWIN-64-PIC: leaq _ddst+64(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat05() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 16
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat05:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: addq $64, %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat05:
|
|
|
|
; LINUX-32-STATIC: movl dptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat05:
|
|
|
|
; LINUX-32-PIC: movl dptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat05:
|
|
|
|
; DARWIN-32-STATIC: movl _dptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat05:
|
|
|
|
; DARWIN-32-DYNAMIC: movl _dptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L95$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L95$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L95$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat05:
|
|
|
|
; DARWIN-64-STATIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat05:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat05:
|
|
|
|
; DARWIN-64-PIC: movq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat06() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat06:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lsrc+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat06:
|
|
|
|
; LINUX-32-STATIC: movl $lsrc+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat06:
|
|
|
|
; LINUX-32-PIC: movl $lsrc+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat06:
|
|
|
|
; LINUX-64-PIC: leaq lsrc+64(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat06:
|
|
|
|
; DARWIN-32-STATIC: movl $_lsrc+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat06:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lsrc+64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L96$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L96$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_lsrc-L96$pb)+64([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat06:
|
|
|
|
; DARWIN-64-STATIC: leaq _lsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat06:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat06:
|
|
|
|
; DARWIN-64-PIC: leaq _lsrc+64(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat07() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 16) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat07:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ldst+64, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst+64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat07:
|
|
|
|
; LINUX-32-PIC: movl $ldst+64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat07:
|
|
|
|
; LINUX-64-PIC: leaq ldst+64(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst+64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst+64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L97$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L97$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L97$pb)+64([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat07:
|
|
|
|
; DARWIN-64-STATIC: leaq _ldst+64(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat07:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst+64(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat07:
|
|
|
|
; DARWIN-64-PIC: leaq _ldst+64(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bat08() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 16
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bat08:
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: addq $64, %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bat08:
|
|
|
|
; LINUX-32-STATIC: movl lptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bat08:
|
|
|
|
; LINUX-32-PIC: movl lptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bat08:
|
|
|
|
; LINUX-64-PIC: movq lptr(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bat08:
|
|
|
|
; DARWIN-32-STATIC: movl _lptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bat08:
|
|
|
|
; DARWIN-32-DYNAMIC: movl _lptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bat08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L98$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L98$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L98$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $64, %eax
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bat08:
|
|
|
|
; DARWIN-64-STATIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bat08:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bat08:
|
|
|
|
; DARWIN-64-PIC: movq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq $64, %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam00() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @src, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam00:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $src+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam00:
|
|
|
|
; LINUX-32-STATIC: movl $src+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam00:
|
|
|
|
; LINUX-32-PIC: movl $src+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam00:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq src@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam00:
|
|
|
|
; DARWIN-32-STATIC: movl $_src+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam00:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_src$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L99$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L99$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl L_src$non_lazy_ptr-L99$pb([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam00:
|
|
|
|
; DARWIN-64-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam00:
|
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam00:
|
|
|
|
; DARWIN-64-PIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _src@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @dst, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dst+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam01:
|
|
|
|
; LINUX-32-STATIC: movl $dst+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam01:
|
|
|
|
; LINUX-32-PIC: movl $dst+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam01:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq dst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam01:
|
|
|
|
; DARWIN-32-STATIC: movl $_dst+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_dst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L100$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L100$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl L_dst$non_lazy_ptr-L100$pb([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam01:
|
|
|
|
; DARWIN-64-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam01:
|
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam01:
|
|
|
|
; DARWIN-64-PIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _dst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bxm01() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([32 x i32]* @xdst, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bxm01:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $xdst+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bxm01:
|
|
|
|
; LINUX-32-STATIC: movl $xdst+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bxm01:
|
|
|
|
; LINUX-32-PIC: movl $xdst+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bxm01:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq xdst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bxm01:
|
|
|
|
; DARWIN-32-STATIC: movl $_xdst+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bxm01:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl L_xdst$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bxm01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L101$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L101$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl L_xdst$non_lazy_ptr-L101$pb([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bxm01:
|
|
|
|
; DARWIN-64-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bxm01:
|
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bxm01:
|
|
|
|
; DARWIN-64-PIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _xdst@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam02() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 65536
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam02:
|
|
|
|
; LINUX-64-STATIC: movl $262144, %eax
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: addq ptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam02:
|
|
|
|
; LINUX-32-STATIC: movl $262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl ptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam02:
|
|
|
|
; LINUX-32-PIC: movl $262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl ptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: addq ([[RCX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam02:
|
|
|
|
; DARWIN-32-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl _ptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl ([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L102$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L102$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L102$pb([[EAX]]), [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl ([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: addq ([[RCX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq ([[RCX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: addq ([[RCX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam03() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @dsrc, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam03:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dsrc+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam03:
|
|
|
|
; LINUX-32-STATIC: movl $dsrc+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam03:
|
|
|
|
; LINUX-32-PIC: movl $dsrc+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam03:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq dsrc@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam03:
|
|
|
|
; DARWIN-32-STATIC: movl $_dsrc+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam03:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dsrc+262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L103$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L103$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_dsrc-L103$pb)+262144([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam03:
|
|
|
|
; DARWIN-64-STATIC: leaq _dsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam03:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam03:
|
|
|
|
; DARWIN-64-PIC: leaq _dsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam04() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @ddst, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam04:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ddst+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam04:
|
|
|
|
; LINUX-32-STATIC: movl $ddst+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam04:
|
|
|
|
; LINUX-32-PIC: movl $ddst+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam04:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq ddst@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam04:
|
|
|
|
; DARWIN-32-STATIC: movl $_ddst+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam04:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ddst+262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L104$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L104$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L104$pb)+262144([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam04:
|
|
|
|
; DARWIN-64-STATIC: leaq _ddst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam04:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam04:
|
|
|
|
; DARWIN-64-PIC: leaq _ddst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam05() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 65536
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam05:
|
|
|
|
; LINUX-64-STATIC: movl $262144, %eax
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: addq dptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam05:
|
|
|
|
; LINUX-32-STATIC: movl $262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl dptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam05:
|
|
|
|
; LINUX-32-PIC: movl $262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl dptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RCX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: addq ([[RCX]]), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam05:
|
|
|
|
; DARWIN-32-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl _dptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam05:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl _dptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L105$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L105$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl _dptr-L105$pb([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam05:
|
|
|
|
; DARWIN-64-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam05:
|
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam05:
|
|
|
|
; DARWIN-64-PIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _dptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam06() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @lsrc, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam06:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lsrc+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam06:
|
|
|
|
; LINUX-32-STATIC: movl $lsrc+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam06:
|
|
|
|
; LINUX-32-PIC: movl $lsrc+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam06:
|
|
|
|
; LINUX-64-PIC: leaq lsrc+262144(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam06:
|
|
|
|
; DARWIN-32-STATIC: movl $_lsrc+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam06:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lsrc+262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L106$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L106$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_lsrc-L106$pb)+262144([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam06:
|
|
|
|
; DARWIN-64-STATIC: leaq _lsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam06:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam06:
|
|
|
|
; DARWIN-64-PIC: leaq _lsrc+262144(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam07() nounwind {
|
|
|
|
entry:
|
|
|
|
ret i8* bitcast (i32* getelementptr ([131072 x i32]* @ldst, i32 0, i64 65536) to i8*)
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam07:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $ldst+262144, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam07:
|
|
|
|
; LINUX-32-STATIC: movl $ldst+262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam07:
|
|
|
|
; LINUX-32-PIC: movl $ldst+262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam07:
|
|
|
|
; LINUX-64-PIC: leaq ldst+262144(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam07:
|
|
|
|
; DARWIN-32-STATIC: movl $_ldst+262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam07:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_ldst+262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L107$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L107$pb:
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L107$pb)+262144([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam07:
|
|
|
|
; DARWIN-64-STATIC: leaq _ldst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam07:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam07:
|
|
|
|
; DARWIN-64-PIC: leaq _ldst+262144(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @bam08() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = getelementptr i32* %0, i64 65536
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: bam08:
|
|
|
|
; LINUX-64-STATIC: movl $262144, %eax
|
2009-08-20 18:23:44 +00:00
|
|
|
; LINUX-64-STATIC: addq lptr(%rip), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: bam08:
|
|
|
|
; LINUX-32-STATIC: movl $262144, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: addl lptr, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: bam08:
|
|
|
|
; LINUX-32-PIC: movl $262144, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: addl lptr, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: bam08:
|
|
|
|
; LINUX-64-PIC: movl $262144, %eax
|
|
|
|
; LINUX-64-PIC-NEXT: addq lptr(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _bam08:
|
|
|
|
; DARWIN-32-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: addl _lptr, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _bam08:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl _lptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _bam08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L108$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L108$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[ECX:%e.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: movl $262144, %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl _lptr-L108$pb([[ECX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _bam08:
|
|
|
|
; DARWIN-64-STATIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-STATIC-NEXT: addq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _bam08:
|
|
|
|
; DARWIN-64-DYNAMIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: addq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _bam08:
|
|
|
|
; DARWIN-64-PIC: movl $262144, %eax
|
|
|
|
; DARWIN-64-PIC-NEXT: addq _lptr(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @src, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat00:
|
|
|
|
; LINUX-64-STATIC: leaq src+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal src+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal src+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _src+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L109$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L109$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L109$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cxt00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cxt00:
|
|
|
|
; LINUX-64-STATIC: leaq xsrc+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal xsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cxt00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L110$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L110$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L110$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cxt00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @dst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat01:
|
|
|
|
; LINUX-64-STATIC: leaq dst+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L111$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L111$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L111$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cxt01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [32 x i32]* @xdst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cxt01:
|
|
|
|
; LINUX-64-STATIC: leaq xdst+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal xdst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xdst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xdst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cxt01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L112$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L112$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L112$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cxt01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 64([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L113$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L113$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L113$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat03:
|
|
|
|
; LINUX-64-STATIC: leaq dsrc+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _dsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L114$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L114$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_dsrc-L114$pb)+64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat04:
|
|
|
|
; LINUX-64-STATIC: leaq ddst+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ddst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ddst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ddst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ddst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L115$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L115$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L115$pb)+64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 64([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L116$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L116$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L116$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat06:
|
|
|
|
; LINUX-64-STATIC: leaq lsrc+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal lsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal lsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _lsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _lsrc+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L117$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L117$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_lsrc-L117$pb)+64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 16
|
|
|
|
%1 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat07:
|
|
|
|
; LINUX-64-STATIC: leaq ldst+64(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ldst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ldst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ldst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ldst+64(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L118$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L118$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L118$pb)+64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cat08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = add i64 %i, 16
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 64([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 64([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cat08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L119$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L119$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L119$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 64([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cat08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 64([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @src, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam00:
|
|
|
|
; LINUX-64-STATIC: leaq src+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal src+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal src+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _src+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_src$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L120$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L120$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_src$non_lazy_ptr-L120$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _src@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cxm00(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [32 x i32]* @xsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cxm00:
|
|
|
|
; LINUX-64-STATIC: leaq xsrc+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal xsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xsrc$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cxm00:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L121$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L121$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xsrc$non_lazy_ptr-L121$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cxm00:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @dst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam01:
|
|
|
|
; LINUX-64-STATIC: leaq dst+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_dst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L122$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L122$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_dst$non_lazy_ptr-L122$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cxm01(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [32 x i32]* @xdst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cxm01:
|
|
|
|
; LINUX-64-STATIC: leaq xdst+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cxm01:
|
|
|
|
; LINUX-32-STATIC: movl 4(%esp), %eax
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: leal xdst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal xdst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _xdst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_xdst$non_lazy_ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cxm01:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L123$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L123$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_xdst$non_lazy_ptr-L123$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cxm01:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _xdst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam02(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @ptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq ptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl ptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _ptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl L_ptr$non_lazy_ptr, [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam02:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L124$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L124$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ptr$non_lazy_ptr-L124$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl ([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam02:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _ptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam03(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @dsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam03:
|
|
|
|
; LINUX-64-STATIC: leaq dsrc+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal dsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal dsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dsrc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _dsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _dsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam03:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L125$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L125$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_dsrc-L125$pb)+262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam03:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _dsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam04(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @ddst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam04:
|
|
|
|
; LINUX-64-STATIC: leaq ddst+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ddst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ddst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq ddst@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ddst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ddst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam04:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L126$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L126$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ddst-L126$pb)+262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam04:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ddst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam05(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @dptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl dptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq dptr@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ([[RAX]]), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _dptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam05:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L127$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L127$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _dptr-L127$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam05:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _dptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam06(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @lsrc, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam06:
|
|
|
|
; LINUX-64-STATIC: leaq lsrc+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal lsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal lsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _lsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _lsrc+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam06:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L128$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L128$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_lsrc-L128$pb)+262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam06:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _lsrc(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam07(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = add i64 %i, 65536
|
|
|
|
%1 = getelementptr [131072 x i32]* @ldst, i64 0, i64 %0
|
|
|
|
%2 = bitcast i32* %1 to i8*
|
|
|
|
ret i8* %2
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam07:
|
|
|
|
; LINUX-64-STATIC: leaq ldst+262144(,%rdi,4), %rax
|
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal ldst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal ldst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: leaq ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal _ldst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal _ldst+262144(,[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam07:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L129$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L129$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal (_ldst-L129$pb)+262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam07:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: leaq _ldst(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define i8* @cam08(i64 %i) nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load i32** @lptr, align 8
|
|
|
|
%1 = add i64 %i, 65536
|
|
|
|
%2 = getelementptr i32* %0, i64 %1
|
|
|
|
%3 = bitcast i32* %2 to i8*
|
|
|
|
ret i8* %3
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-STATIC: movq lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-STATIC: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-32-PIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: movl lptr, [[ECX:%e.x]]
|
|
|
|
; LINUX-32-PIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: movq lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-STATIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-STATIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-DYNAMIC: movl 4(%esp), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl _lptr, [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: leal 262144([[ECX]],[[EAX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _cam08:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L130$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L130$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl 4(%esp), [[ECX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl _lptr-L130$pb([[EAX]]), [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal 262144([[EAX]],[[ECX]],4), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _cam08:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: movq _lptr(%rip), [[RAX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: leaq 262144([[RAX]],%rdi,4), %rax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @lcallee() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
|
|
|
call void @x() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: lcallee:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
|
|
|
; LINUX-64-STATIC: callq x
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: lcallee:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
|
|
|
; LINUX-32-STATIC-NEXT: calll x
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: lcallee:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
|
|
|
; LINUX-32-PIC-NEXT: calll x
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: lcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq x@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _lcallee:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _x
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _lcallee:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_x$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _lcallee:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_x$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _lcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _x
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _lcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _x
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _lcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _x
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare void @x()
|
|
|
|
|
|
|
|
define internal void @dcallee() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
|
|
|
call void @y() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: dcallee:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
|
|
|
; LINUX-64-STATIC: callq y
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: dcallee:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
|
|
|
; LINUX-32-STATIC-NEXT: calll y
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: dcallee:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
|
|
|
; LINUX-32-PIC-NEXT: calll y
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: dcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq y@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _dcallee:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _y
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _dcallee:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_y$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _dcallee:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_y$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _dcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _y
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _dcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _y
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _dcallee:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _y
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare void @y()
|
|
|
|
|
|
|
|
define void ()* @address() nounwind {
|
|
|
|
entry:
|
|
|
|
ret void ()* @callee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: address:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $callee, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: address:
|
|
|
|
; LINUX-32-STATIC: movl $callee, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: address:
|
|
|
|
; LINUX-32-PIC: movl $callee, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: address:
|
|
|
|
; LINUX-64-PIC: movq callee@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _address:
|
|
|
|
; DARWIN-32-STATIC: movl $_callee, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _address:
|
|
|
|
; DARWIN-32-DYNAMIC: movl L_callee$non_lazy_ptr, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _address:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L133$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L133$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_callee$non_lazy_ptr-L133$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _address:
|
|
|
|
; DARWIN-64-STATIC: movq _callee@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _address:
|
|
|
|
; DARWIN-64-DYNAMIC: movq _callee@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _address:
|
|
|
|
; DARWIN-64-PIC: movq _callee@GOTPCREL(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare void @callee()
|
|
|
|
|
|
|
|
define void ()* @laddress() nounwind {
|
|
|
|
entry:
|
|
|
|
ret void ()* @lcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: laddress:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $lcallee, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: laddress:
|
|
|
|
; LINUX-32-STATIC: movl $lcallee, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: laddress:
|
|
|
|
; LINUX-32-PIC: movl $lcallee, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: laddress:
|
|
|
|
; LINUX-64-PIC: movq lcallee@GOTPCREL(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _laddress:
|
|
|
|
; DARWIN-32-STATIC: movl $_lcallee, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _laddress:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_lcallee, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _laddress:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L134$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L134$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _lcallee-L134$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _laddress:
|
|
|
|
; DARWIN-64-STATIC: leaq _lcallee(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _laddress:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _lcallee(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _laddress:
|
|
|
|
; DARWIN-64-PIC: leaq _lcallee(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void ()* @daddress() nounwind {
|
|
|
|
entry:
|
|
|
|
ret void ()* @dcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: daddress:
|
2009-07-11 23:17:29 +00:00
|
|
|
; LINUX-64-STATIC: movl $dcallee, %eax
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: daddress:
|
|
|
|
; LINUX-32-STATIC: movl $dcallee, %eax
|
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: daddress:
|
|
|
|
; LINUX-32-PIC: movl $dcallee, %eax
|
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: daddress:
|
|
|
|
; LINUX-64-PIC: leaq dcallee(%rip), %rax
|
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _daddress:
|
|
|
|
; DARWIN-32-STATIC: movl $_dcallee, %eax
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _daddress:
|
|
|
|
; DARWIN-32-DYNAMIC: movl $_dcallee, %eax
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _daddress:
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC: calll L135$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L135$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: leal _dcallee-L135$pb([[EAX]]), %eax
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _daddress:
|
|
|
|
; DARWIN-64-STATIC: leaq _dcallee(%rip), %rax
|
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _daddress:
|
|
|
|
; DARWIN-64-DYNAMIC: leaq _dcallee(%rip), %rax
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _daddress:
|
|
|
|
; DARWIN-64-PIC: leaq _dcallee(%rip), %rax
|
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @caller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @callee() nounwind
|
|
|
|
call void @callee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: caller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq callee
|
|
|
|
; LINUX-64-STATIC: callq callee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: caller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll callee
|
|
|
|
; LINUX-32-STATIC-NEXT: calll callee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: caller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll callee
|
|
|
|
; LINUX-32-PIC-NEXT: calll callee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: caller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq callee@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq callee@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _caller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _callee
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _callee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _caller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_callee$stub
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_callee$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _caller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L_callee$stub
|
|
|
|
; DARWIN-32-PIC-NEXT: calll L_callee$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _caller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _callee
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _caller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _callee
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _caller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _callee
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @dcaller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @dcallee() nounwind
|
|
|
|
call void @dcallee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: dcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq dcallee
|
|
|
|
; LINUX-64-STATIC: callq dcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: dcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll dcallee
|
|
|
|
; LINUX-32-STATIC-NEXT: calll dcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: dcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll dcallee
|
|
|
|
; LINUX-32-PIC-NEXT: calll dcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: dcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq dcallee
|
|
|
|
; LINUX-64-PIC-NEXT: callq dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _dcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _dcallee
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _dcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _dcallee
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _dcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll _dcallee
|
|
|
|
; DARWIN-32-PIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _dcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _dcallee
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _dcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _dcallee
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _dcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _dcallee
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @lcaller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @lcallee() nounwind
|
|
|
|
call void @lcallee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: lcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq lcallee
|
|
|
|
; LINUX-64-STATIC: callq lcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: lcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll lcallee
|
|
|
|
; LINUX-32-STATIC-NEXT: calll lcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: lcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll lcallee
|
|
|
|
; LINUX-32-PIC-NEXT: calll lcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: lcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq lcallee@PLT
|
|
|
|
; LINUX-64-PIC-NEXT: callq lcallee@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _lcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _lcallee
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _lcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _lcallee
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _lcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll _lcallee
|
|
|
|
; DARWIN-32-PIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _lcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _lcallee
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _lcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _lcallee
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _lcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _lcallee
|
|
|
|
; DARWIN-64-PIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @tailcaller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @callee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: tailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq callee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: tailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll callee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: tailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll callee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: tailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq callee@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _tailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _callee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _tailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll L_callee$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _tailcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L_callee$stub
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _tailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _tailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _tailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _callee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @dtailcaller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @dcallee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: dtailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq dcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: dtailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll dcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: dtailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll dcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: dtailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _dtailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _dtailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _dtailcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll _dcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _dtailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _dtailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _dtailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _dcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ltailcaller() nounwind {
|
|
|
|
entry:
|
2009-12-18 01:02:18 +00:00
|
|
|
call void @lcallee() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ltailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq lcallee
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ltailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll lcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ltailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll lcallee
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ltailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq lcallee@PLT
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ltailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ltailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ltailcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll _lcallee
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ltailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ltailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ltailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq _lcallee
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @icaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @ifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
%1 = load void ()** @ifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %1() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: icaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *ifunc
|
|
|
|
; LINUX-64-STATIC: callq *ifunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: icaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *ifunc
|
|
|
|
; LINUX-32-STATIC-NEXT: calll *ifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: icaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *ifunc
|
|
|
|
; LINUX-32-PIC-NEXT: calll *ifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: icaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: pushq [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _icaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_ifunc
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_ifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _icaller:
|
|
|
|
; DARWIN-32-DYNAMIC: pushl %esi
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: subl $8, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ifunc$non_lazy_ptr, %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *(%esi)
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _icaller:
|
|
|
|
; DARWIN-32-PIC: pushl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: subl $8, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L142$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L142$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ifunc$non_lazy_ptr-L142$pb([[EAX]]), %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll *(%esi)
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _icaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-STATIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _icaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _icaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-PIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @dicaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @difunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
%1 = load void ()** @difunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %1() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: dicaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *difunc
|
|
|
|
; LINUX-64-STATIC: callq *difunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: dicaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *difunc
|
|
|
|
; LINUX-32-STATIC-NEXT: calll *difunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: dicaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *difunc
|
|
|
|
; LINUX-32-PIC-NEXT: calll *difunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: dicaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: pushq [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq difunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _dicaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_difunc
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_difunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _dicaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_difunc
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_difunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _dicaller:
|
|
|
|
; DARWIN-32-PIC: pushl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: subl $8, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L143$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L143$pb:
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll *_difunc-L143$pb(%esi)
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *_difunc-L143$pb(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _dicaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_difunc(%rip)
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _dicaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_difunc(%rip)
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _dicaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq *_difunc(%rip)
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @licaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @lifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
%1 = load void ()** @lifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %1() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: licaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *lifunc
|
|
|
|
; LINUX-64-STATIC: callq *lifunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: licaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *lifunc
|
|
|
|
; LINUX-32-STATIC-NEXT: calll *lifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: licaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *lifunc
|
|
|
|
; LINUX-32-PIC-NEXT: calll *lifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: licaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq *lifunc(%rip)
|
|
|
|
; LINUX-64-PIC-NEXT: callq *lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _licaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_lifunc
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_lifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _licaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_lifunc
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_lifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _licaller:
|
|
|
|
; DARWIN-32-PIC: pushl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: subl $8, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L144$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L144$pb:
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll *_lifunc-L144$pb(%esi)
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *_lifunc-L144$pb(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _licaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_lifunc(%rip)
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _licaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_lifunc(%rip)
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _licaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq *_lifunc(%rip)
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @itailcaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @ifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
%1 = load void ()** @ifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %1() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: itailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *ifunc
|
|
|
|
; LINUX-64-STATIC: callq *ifunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: itailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *ifunc
|
|
|
|
; LINUX-32-STATIC-NEXT: calll *ifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: itailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *ifunc
|
|
|
|
; LINUX-32-PIC-NEXT: calll *ifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: itailcaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC: pushq [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: movq ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; LINUX-64-PIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _itailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_ifunc
|
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_ifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _itailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: pushl %esi
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: subl $8, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: movl L_ifunc$non_lazy_ptr, %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *(%esi)
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _itailcaller:
|
|
|
|
; DARWIN-32-PIC: pushl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: subl $8, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L145$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L145$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: movl L_ifunc$non_lazy_ptr-L145$pb([[EAX]]), %esi
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll *(%esi)
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *(%esi)
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $8, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: popl %esi
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _itailcaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-STATIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-STATIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-STATIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _itailcaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _itailcaller:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-64-PIC: pushq [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: movq _ifunc@GOTPCREL(%rip), [[RBX:%r.x]]
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-PIC-NEXT: callq *([[RBX]])
|
|
|
|
; DARWIN-64-PIC-NEXT: popq [[RBX:%r.x]]
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @ditailcaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @difunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ditailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *difunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: ditailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *difunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: ditailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *difunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: ditailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
2011-04-05 20:20:30 +00:00
|
|
|
; LINUX-64-PIC-NEXT: movq difunc@GOTPCREL(%rip), [[RAX:%r.x]]
|
|
|
|
; LINUX-64-PIC-NEXT: callq *([[RAX]])
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _ditailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_difunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _ditailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_difunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _ditailcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L146$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L146$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *_difunc-L146$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _ditailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _ditailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _ditailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC: callq *_difunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @litailcaller() nounwind {
|
|
|
|
entry:
|
|
|
|
%0 = load void ()** @lifunc, align 8
|
2009-12-18 01:02:18 +00:00
|
|
|
call void %0() nounwind
|
2009-03-14 02:35:10 +00:00
|
|
|
ret void
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: litailcaller:
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-STATIC: callq *lifunc
|
2009-07-11 20:29:19 +00:00
|
|
|
; LINUX-64-STATIC: ret
|
2009-08-25 18:45:03 +00:00
|
|
|
|
|
|
|
; LINUX-32-STATIC: litailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: calll *lifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: addl
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-32-PIC: litailcaller:
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC: subl
|
2010-09-22 05:49:14 +00:00
|
|
|
; LINUX-32-PIC-NEXT: calll *lifunc
|
2011-01-13 06:47:10 +00:00
|
|
|
; LINUX-32-PIC-NEXT: addl
|
|
|
|
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; LINUX-64-PIC: litailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; LINUX-64-PIC-NEXT: callq *lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; LINUX-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; LINUX-64-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-STATIC: _litailcaller:
|
|
|
|
; DARWIN-32-STATIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: calll *_lifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-STATIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-DYNAMIC: _litailcaller:
|
|
|
|
; DARWIN-32-DYNAMIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: calll *_lifunc
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-DYNAMIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-32-PIC: _litailcaller:
|
|
|
|
; DARWIN-32-PIC: subl $12, %esp
|
2010-09-22 05:49:14 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: calll L147$pb
|
2010-04-17 16:29:15 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: L147$pb:
|
2011-04-05 20:20:30 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: popl [[EAX:%e.x]]
|
|
|
|
; DARWIN-32-PIC-NEXT: calll *_lifunc-L147$pb([[EAX]])
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-32-PIC-NEXT: addl $12, %esp
|
|
|
|
; DARWIN-32-PIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-STATIC: _litailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-STATIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-DYNAMIC: _litailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-DYNAMIC-NEXT: ret
|
|
|
|
|
|
|
|
; DARWIN-64-PIC: _litailcaller:
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC: pushq
|
Instruction fixes, added instructions, and AsmString changes in the
X86 instruction tables.
Also (while I was at it) cleaned up the X86 tables, removing tabs and
80-line violations.
This patch was reviewed by Chris Lattner, but please let me know if
there are any problems.
* X86*.td
Removed tabs and fixed 80-line violations
* X86Instr64bit.td
(IRET, POPCNT, BT_, LSL, SWPGS, PUSH_S, POP_S, L_S, SMSW)
Added
(CALL, CMOV) Added qualifiers
(JMP) Added PC-relative jump instruction
(POPFQ/PUSHFQ) Added qualifiers; renamed PUSHFQ to indicate
that it is 64-bit only (ambiguous since it has no
REX prefix)
(MOV) Added rr form going the other way, which is encoded
differently
(MOV) Changed immediates to offsets, which is more correct;
also fixed MOV64o64a to have to a 64-bit offset
(MOV) Fixed qualifiers
(MOV) Added debug-register and condition-register moves
(MOVZX) Added more forms
(ADC, SUB, SBB, AND, OR, XOR) Added reverse forms, which
(as with MOV) are encoded differently
(ROL) Made REX.W required
(BT) Uncommented mr form for disassembly only
(CVT__2__) Added several missing non-intrinsic forms
(LXADD, XCHG) Reordered operands to make more sense for
MRMSrcMem
(XCHG) Added register-to-register forms
(XADD, CMPXCHG, XCHG) Added non-locked forms
* X86InstrSSE.td
(CVTSS2SI, COMISS, CVTTPS2DQ, CVTPS2PD, CVTPD2PS, MOVQ)
Added
* X86InstrFPStack.td
(COM_FST0, COMP_FST0, COM_FI, COM_FIP, FFREE, FNCLEX, FNOP,
FXAM, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2, F2XM1, FYL2X,
FPTAN, FPATAN, FXTRACT, FPREM1, FDECSTP, FINCSTP, FPREM,
FYL2XP1, FSINCOS, FRNDINT, FSCALE, FCOMPP, FXSAVE,
FXRSTOR)
Added
(FCOM, FCOMP) Added qualifiers
(FSTENV, FSAVE, FSTSW) Fixed opcode names
(FNSTSW) Added implicit register operand
* X86InstrInfo.td
(opaque512mem) Added for FXSAVE/FXRSTOR
(offset8, offset16, offset32, offset64) Added for MOV
(NOOPW, IRET, POPCNT, IN, BTC, BTR, BTS, LSL, INVLPG, STR,
LTR, PUSHFS, PUSHGS, POPFS, POPGS, LDS, LSS, LES, LFS,
LGS, VERR, VERW, SGDT, SIDT, SLDT, LGDT, LIDT, LLDT,
LODSD, OUTSB, OUTSW, OUTSD, HLT, RSM, FNINIT, CLC, STC,
CLI, STI, CLD, STD, CMC, CLTS, XLAT, WRMSR, RDMSR, RDPMC,
SMSW, LMSW, CPUID, INVD, WBINVD, INVEPT, INVVPID, VMCALL,
VMCLEAR, VMLAUNCH, VMRESUME, VMPTRLD, VMPTRST, VMREAD,
VMWRITE, VMXOFF, VMXON) Added
(NOOPL, POPF, POPFD, PUSHF, PUSHFD) Added qualifier
(JO, JNO, JB, JAE, JE, JNE, JBE, JA, JS, JNS, JP, JNP, JL,
JGE, JLE, JG, JCXZ) Added 32-bit forms
(MOV) Changed some immediate forms to offset forms
(MOV) Added reversed reg-reg forms, which are encoded
differently
(MOV) Added debug-register and condition-register moves
(CMOV) Added qualifiers
(AND, OR, XOR, ADC, SUB, SBB) Added reverse forms, like MOV
(BT) Uncommented memory-register forms for disassembler
(MOVSX, MOVZX) Added forms
(XCHG, LXADD) Made operand order make sense for MRMSrcMem
(XCHG) Added register-register forms
(XADD, CMPXCHG) Added unlocked forms
* X86InstrMMX.td
(MMX_MOVD, MMV_MOVQ) Added forms
* X86InstrInfo.cpp: Changed PUSHFQ to PUSHFQ64 to reflect table
change
* X86RegisterInfo.td: Added debug and condition register sets
* x86-64-pic-3.ll: Fixed testcase to reflect call qualifier
* peep-test-3.ll: Fixed testcase to reflect test qualifier
* cmov.ll: Fixed testcase to reflect cmov qualifier
* loop-blocks.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-11.ll: Fixed testcase to reflect call qualifier
* 2009-11-04-SubregCoalescingBug.ll: Fixed testcase to reflect call
qualifier
* x86-64-pic-2.ll: Fixed testcase to reflect call qualifier
* live-out-reg-info.ll: Fixed testcase to reflect test qualifier
* tail-opts.ll: Fixed testcase to reflect call qualifiers
* x86-64-pic-10.ll: Fixed testcase to reflect call qualifier
* bss-pagealigned.ll: Fixed testcase to reflect call qualifier
* x86-64-pic-1.ll: Fixed testcase to reflect call qualifier
* widen_load-1.ll: Fixed testcase to reflect call qualifier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91638 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-18 00:01:26 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: callq *_lifunc(%rip)
|
2011-01-03 22:53:22 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: popq
|
2009-08-25 18:45:03 +00:00
|
|
|
; DARWIN-64-PIC-NEXT: ret
|
2009-03-14 02:35:10 +00:00
|
|
|
}
|