1; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
2@tm_nest_level = internal thread_local global i32 0
3define i64 @z() nounwind {
4; CHECK: movabsq $tm_nest_level@TPOFF, %rcx
5 ret i64 and (i64 ptrtoint (i32* @tm_nest_level to i64), i64 100)
6}
7