llvm-6502/test/CodeGen/X86/2009-04-17-tls-fast.ll
David Greene bef8768bd0 Simplify operand padding by keying off tabs in the asm stream. If
padding is disabled, tabs get replaced by spaces except in the case of
the first operand, where the tab is output to line up the operands after
the mnemonics.

Add some better comments and eliminate redundant code.

Fix some testcases to not assume tabs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77740 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-31 21:57:10 +00:00

18 lines
423 B
LLVM

; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=x86_64-linux-gnu -relocation-model=pic -regalloc=local > %t
; RUN: grep {leaq foo@TLSGD(%rip), %rdi} %t
@foo = internal thread_local global i32 100
define void @f(i32 %n) nounwind {
entry:
%n_addr = alloca i32
%p = alloca i32*
%"alloca point" = bitcast i32 0 to i32
store i32 %n, i32* %n_addr
store i32* @foo, i32** %p, align 8
br label %return
return:
ret void
}