xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/x86-64-tls-1.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker@tm_nest_level = internal thread_local global i32 0
3*9880d681SAndroid Build Coastguard Workerdefine i64 @z() nounwind {
4*9880d681SAndroid Build Coastguard Worker; CHECK:      movq    $tm_nest_level@TPOFF, %r[[R0:[abcd]]]x
5*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: addl    %fs:0, %e[[R0]]x
6*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: andl    $100, %e[[R0]]x
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker  ret i64 and (i64 ptrtoint (i32* @tm_nest_level to i64), i64 100)
9*9880d681SAndroid Build Coastguard Worker}
10