mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-13 17:20:28 +00:00
![Craig Topper](/assets/img/avatar_default.png)
Previously the patterns didn't have high enough priority and we would only use the GR32 form if the only the upper 32 or 56 bits were zero. Fixes PR23100. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234075 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
352 B
LLVM
10 lines
352 B
LLVM
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
|
|
@tm_nest_level = internal thread_local global i32 0
|
|
define i64 @z() nounwind {
|
|
; CHECK: movq $tm_nest_level@TPOFF, %r[[R0:[abcd]]]x
|
|
; CHECK-NEXT: addl %fs:0, %e[[R0]]x
|
|
; CHECK-NEXT: andl $100, %e[[R0]]x
|
|
|
|
ret i64 and (i64 ptrtoint (i32* @tm_nest_level to i64), i64 100)
|
|
}
|