This commit enables unaligned memory accesses of vector types on AArch64 back end...
[oota-llvm.git] / test / CodeGen / X86 / x86-64-tls-1.ll
1 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
2 @tm_nest_level = internal thread_local global i32 0
3 define i64 @z() nounwind {
4 ; FIXME: The codegen here is primitive at best and could be much better.
5 ; The add and the moves can be folded together.
6 ; CHECK-DAG: movq    $tm_nest_level@TPOFF, %rcx
7 ; CHECK-DAG: movq    %fs:0, %rax
8 ; CHECK: addl    %ecx, %eax
9   ret i64 and (i64 ptrtoint (i32* @tm_nest_level to i64), i64 100)
10 }