mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
54ac1d95cd
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. llvm-svn: 234075
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)
|
|
}
|